Browse Source

Adds settings menu choice to views

main
Eric Amodio 6 years ago
parent
commit
7b34a945b6
3 changed files with 9 additions and 2 deletions
  1. +5
    -0
      package.json
  2. +2
    -1
      src/webviews/settingsEditor.ts
  3. +2
    -1
      src/webviews/welcomeEditor.ts

+ 5
- 0
package.json View File

@ -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": [

+ 2
- 1
src/webviews/settingsEditor.ts View File

@ -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][] {

+ 2
- 1
src/webviews/welcomeEditor.ts View File

@ -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)];
}
}

Loading…
Cancel
Save