Bladeren bron

Adds Collapse command to view nodes

main
Eric Amodio 1 jaar geleden
bovenliggende
commit
84e197baab
3 gewijzigde bestanden met toevoegingen van 17 en 1 verwijderingen
  1. +15
    -1
      package.json
  2. +1
    -0
      src/constants.ts
  3. +1
    -0
      src/views/viewCommands.ts

+ 15
- 1
package.json Bestand weergeven

@ -6525,6 +6525,11 @@
"icon": "$(close)"
},
{
"command": "gitlens.views.collapseNode",
"title": "Collapse",
"category": "GitLens"
},
{
"command": "gitlens.views.dismissNode",
"title": "Dismiss",
"category": "GitLens",
@ -9385,6 +9390,10 @@
"when": "false"
},
{
"command": "gitlens.views.collapseNode",
"when": "false"
},
{
"command": "gitlens.views.dismissNode",
"when": "false"
},
@ -13081,11 +13090,16 @@
"group": "8_gitlens_actions@98"
},
{
"command": "gitlens.views.expandNode",
"command": "gitlens.views.collapseNode",
"when": "viewItem =~ /gitlens:(branch|compare|folder|results|search|status)\\b/",
"group": "9_gitlens@1"
},
{
"command": "gitlens.views.expandNode",
"when": "viewItem =~ /gitlens:(branch|compare|folder|results|search|status)\\b/",
"group": "9_gitlens@2"
},
{
"command": "gitlens.views.refreshNode",
"when": "viewItem =~ /gitlens:(?!(file|message|date-marker)\\b)/",
"group": "9_gitlens@99"

+ 1
- 0
src/constants.ts Bestand weergeven

@ -606,6 +606,7 @@ export type CoreCommands =
| 'editor.action.showReferences'
| 'editor.action.webvieweditor.showFind'
| 'editorScroll'
| 'list.collapseAllToFocus'
| 'openInTerminal'
| 'revealFileInOS'
| 'revealInExplorer'

+ 1
- 0
src/views/viewCommands.ts Bestand weergeven

@ -136,6 +136,7 @@ export class ViewCommands {
},
this,
);
registerViewCommand('gitlens.views.collapseNode', () => executeCoreCommand('list.collapseAllToFocus'), this);
registerViewCommand(
'gitlens.views.dismissNode',
(n: ViewNode) => canViewDismissNode(n.view) && n.view.dismissNode(n),

Laden…
Annuleren
Opslaan