Bladeren bron

Adds command to open graph settings

main
Eric Amodio 2 jaren geleden
bovenliggende
commit
985565a989
3 gewijzigde bestanden met toevoegingen van 18 en 0 verwijderingen
  1. +16
    -0
      package.json
  2. +1
    -0
      src/constants.ts
  3. +1
    -0
      src/webviews/settings/settingsWebview.ts

+ 16
- 0
package.json Bestand weergeven

@ -89,6 +89,7 @@
"onCommand:gitlens.showSettingsPage#stashes-view",
"onCommand:gitlens.showSettingsPage#tags-view",
"onCommand:gitlens.showSettingsPage#worktrees-view",
"onCommand:gitlens.showSettingsPage#commit-graph",
"onCommand:gitlens.showWelcomePage",
"onCommand:gitlens.showBranchesView",
"onCommand:gitlens.showCommitDetailsView",
@ -4135,6 +4136,12 @@
"icon": "$(gear)"
},
{
"command": "gitlens.showSettingsPage#commit-graph",
"title": "Open Commit Graph Settings",
"category": "GitLens+",
"icon": "$(gear)"
},
{
"command": "gitlens.showTimelinePage",
"title": "Open Visual File History of Active File",
"category": "GitLens+",
@ -6763,6 +6770,10 @@
"when": "false"
},
{
"command": "gitlens.showSettingsPage#commit-graph",
"when": "false"
},
{
"command": "gitlens.showTimelinePage",
"when": "gitlens:enabled && gitlens:activeFileStatus =~ /tracked/"
},
@ -8590,6 +8601,11 @@
"command": "gitlens.refreshGraphPage",
"when": "gitlens:graphPage:focused",
"group": "navigation@-99"
},
{
"command": "gitlens.showSettingsPage#commit-graph",
"when": "gitlens:graphPage:focused",
"group": "navigation@-98"
}
],
"editor/title/context": [

+ 1
- 0
src/constants.ts Bestand weergeven

@ -198,6 +198,7 @@ export const enum Commands {
ShowSettingsPageAndJumpToTagsView = 'gitlens.showSettingsPage#tags-view',
ShowSettingsPageAndJumpToWorkTreesView = 'gitlens.showSettingsPage#worktrees-view',
ShowSettingsPageAndJumpToViews = 'gitlens.showSettingsPage#views',
ShowSettingsPageAndJumpToCommitGraph = 'gitlens.showSettingsPage#commit-graph',
ShowSettingsPageAndJumpToAutolinks = 'gitlens.showSettingsPage#autolinks',
ShowStashesView = 'gitlens.showStashesView',
ShowTagsView = 'gitlens.showTagsView',

+ 1
- 0
src/webviews/settings/settingsWebview.ts Bestand weergeven

@ -37,6 +37,7 @@ export class SettingsWebview extends WebviewWithConfigBase {
Commands.ShowSettingsPageAndJumpToTagsView,
Commands.ShowSettingsPageAndJumpToWorkTreesView,
Commands.ShowSettingsPageAndJumpToViews,
Commands.ShowSettingsPageAndJumpToCommitGraph,
Commands.ShowSettingsPageAndJumpToAutolinks,
].map(c => {
// The show and jump commands are structured to have a # separating the base command from the anchor

Laden…
Annuleren
Opslaan