Browse Source

Adds command to jump to views settings section

main
Eric Amodio 4 years ago
parent
commit
34aee9eda4
3 changed files with 12 additions and 0 deletions
  1. +10
    -0
      package.json
  2. +1
    -0
      src/commands/common.ts
  3. +1
    -0
      src/webviews/settingsWebview.ts

+ 10
- 0
package.json View File

@ -2405,6 +2405,12 @@
"icon": "$(gear)"
},
{
"command": "gitlens.showSettingsPage#views",
"title": "Open Settings",
"category": "GitLens",
"icon": "$(gear)"
},
{
"command": "gitlens.showSettingsPage#branches-view",
"title": "Open Settings",
"category": "GitLens",
@ -4234,6 +4240,10 @@
"menus": {
"commandPalette": [
{
"command": "gitlens.showSettingsPage#views",
"when": "false"
},
{
"command": "gitlens.showSettingsPage#branches-view",
"when": "false"
},

+ 1
- 0
src/commands/common.ts View File

@ -122,6 +122,7 @@ export enum Commands {
ShowSettingsPageAndJumpToSearchAndCompareView = 'gitlens.showSettingsPage#search-compare-view',
ShowSettingsPageAndJumpToStashesView = 'gitlens.showSettingsPage#stashes-view',
ShowSettingsPageAndJumpToTagsView = 'gitlens.showSettingsPage#tags-view',
ShowSettingsPageAndJumpToViews = 'gitlens.showSettingsPage#views',
ShowStashesView = 'gitlens.showStashesView',
ShowTagsView = 'gitlens.showTagsView',
ShowWelcomePage = 'gitlens.showWelcomePage',

+ 1
- 0
src/webviews/settingsWebview.ts View File

@ -32,6 +32,7 @@ export class SettingsWebview extends WebviewBase {
Commands.ShowSettingsPageAndJumpToSearchAndCompareView,
Commands.ShowSettingsPageAndJumpToStashesView,
Commands.ShowSettingsPageAndJumpToTagsView,
Commands.ShowSettingsPageAndJumpToViews,
].map(c => {
// The show and jump commands are structured to have a # separating the base command from the anchor
let anchor: string | undefined;

Loading…
Cancel
Save