-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
preferences: add json
commands
#9832
Conversation
The commit adds the following commands: - `open user preferences (json)` - `open workspace preferences (json)` - `open folder preferences (json)` The folder command will prompt users to first select a root before opening. Signed-off-by: vince-fugnitto <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That already looks really good. I have a few questions/points of discussion before approving though.
export const OPEN_FOLDER_PREFERENCES_JSON: Command = { | ||
id: 'workbench.action.openFolderSettingsFile', | ||
category: 'Preferences', | ||
label: 'Open Folder Preferences (JSON)', | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. I confirm the new commands appear and work when they're supposed to, and do not appear when they should not. They all have the ID's that a VSCode plugin would expect.
@msujew I'll merge and @colin-grant-work mentioned a follow-up pull-request to add the missing command (out of scope for this pull-request) with some possible additional refactorings. |
What it does
The pull-request adds the following commands:
open user preferences (json)
open workspace preferences (json)
open folder preferences (json)
The folder command will prompt users to first select a root before opening.
How to test
open user preferences (json)
- the usersettings.json
should be opened in an editor.open workspace preferences (json)
- the workspacesettings.json
should be opened in an editor.open folder preferences (json)
- the respectivesettings.json
should be opened after selecting a root.open folder preferences (json)
does not appear in a single-root workspace or a multi-root workspace without any root folders.Review checklist
Reminder for reviewers
Signed-off-by: vince-fugnitto [email protected]