Skip to content

Commit

Permalink
feat: implement openSettingsJson command (#748)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricbet authored Mar 30, 2022
1 parent 566bc4b commit 154d373
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/extension/src/browser/extension.contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@ export class ExtensionCommandContribution implements CommandContribution {
// others
VSCodeBuiltinCommands.RELOAD_WINDOW,
VSCodeBuiltinCommands.SETTINGS_COMMAND_OPEN_SETTINGS,
VSCodeBuiltinCommands.SETTINGS_COMMAND_OPEN_SETTINGS_JSON,
].forEach((command) => {
registry.registerCommand(command);
});
Expand Down
5 changes: 5 additions & 0 deletions packages/extension/src/browser/vscode/builtin-commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,11 @@ export const SETTINGS_COMMAND_OPEN_SETTINGS: Command = {
delegate: 'core.openpreference',
};

export const SETTINGS_COMMAND_OPEN_SETTINGS_JSON: Command = {
id: 'workbench.action.openSettingsJson',
delegate: 'preference.open.source',
};

export const EDITOR_NAVIGATE_BACK: Command = {
id: 'workbench.action.navigateBack',
delegate: EDITOR_COMMANDS.GO_BACK.id,
Expand Down

0 comments on commit 154d373

Please sign in to comment.