Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort vscode extension schema json by keys #3203

Merged
merged 3 commits into from
Sep 25, 2022

Conversation

fendor
Copy link
Collaborator

@fendor fendor commented Sep 20, 2022

Makes it easier to copy and paste configurations into VSCode and reviewing what options have been added and removed. I was reminded that we need something like this and add this to the release checklist for HLS, since we forgot to add Stan options vscode.

Remove code-duplication, namely ghcide exe loses some capabilities, as it is destined to be removed sooner or later.

| PrintExtensionSchema
| PrintDefaultConfig
Copy link
Collaborator Author

@fendor fendor Sep 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For anyone who was wondering, this was the actual codepath taken, instead of VSCodeExtensionSchemaMode from src/Ide/Main.hs. That used to be dead-code.

Makes it easier to copy and paste configurations into VSCode and
reviewing what options have been added and removed.

Remove code-duplication, namely ghcide exe loses some capabilities, as
it is destined to be removed sooner or later.
@fendor
Copy link
Collaborator Author

fendor commented Sep 20, 2022

Actually, isn't there supposed to be a haskell.plugins.stan.globalOn configuration? Couldn't find it right now.

@michaelpj
Copy link
Collaborator

I assume the sorting means that we do get options for the same plugin near each other because they will have the same prefix?

@fendor
Copy link
Collaborator Author

fendor commented Sep 21, 2022

yes, that's the idea, lexicographic sorting should take care of it. Unless my brain is messing up again

@michaelpj michaelpj added the merge me Label to trigger pull request merge label Sep 21, 2022
@mergify mergify bot merged commit 6f9b435 into haskell:master Sep 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Label to trigger pull request merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants