diff --git a/package.json b/package.json index 90f37bb..ade8865 100644 --- a/package.json +++ b/package.json @@ -3490,6 +3490,11 @@ "command": "gitlens.views.search.setFilesLayoutToTree", "when": "view =~ /^gitlens\\.views\\.search:/", "group": "1_gitlens" + }, + { + "command": "gitlens.showSettingsPage", + "when": "view =~ /^gitlens\\.views\\..*:/", + "group": "9_gitlens" } ], "view/item/context": [ diff --git a/src/webviews/settingsEditor.ts b/src/webviews/settingsEditor.ts index b4df165..645707e 100644 --- a/src/webviews/settingsEditor.ts +++ b/src/webviews/settingsEditor.ts @@ -1,5 +1,6 @@ 'use strict'; import { commands, workspace } from 'vscode'; +import { Commands } from '../commands'; import { Config, configuration } from '../configuration'; import { SettingsBootstrap } from '../ui/ipc'; import { WebviewEditor } from './webviewEditor'; @@ -31,7 +32,7 @@ export class SettingsEditor extends WebviewEditor { } registerCommands() { - return [commands.registerCommand('gitlens.showSettingsPage', this.show, this)]; + return [commands.registerCommand(Commands.ShowSettingsPage, this.show, this)]; } private getAvailableScopes(): ['user' | 'workspace', string][] { diff --git a/src/webviews/welcomeEditor.ts b/src/webviews/welcomeEditor.ts index b8779ed..6e37aeb 100644 --- a/src/webviews/welcomeEditor.ts +++ b/src/webviews/welcomeEditor.ts @@ -1,5 +1,6 @@ 'use strict'; import { commands } from 'vscode'; +import { Commands } from '../commands'; import { Container } from '../container'; import { WelcomeBootstrap } from '../ui/ipc'; import { WebviewEditor } from './webviewEditor'; @@ -28,6 +29,6 @@ export class WelcomeEditor extends WebviewEditor { } registerCommands() { - return [commands.registerCommand('gitlens.showWelcomePage', this.show, this)]; + return [commands.registerCommand(Commands.ShowWelcomePage, this.show, this)]; } }