Git - add stage/unstage commands to editor title (#237257)

This commit is contained in:
Ladislau Szomoru
2025-01-04 19:15:35 +01:00
committed by GitHub
parent 2bdb3e9b41
commit aa6a38114c
2 changed files with 39 additions and 1 deletions

View File

@@ -2050,9 +2050,19 @@
"group": "navigation",
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && isInNotebookTextDiffEditor && resourceScheme =~ /^git$|^file$/"
},
{
"command": "git.stage",
"group": "navigation@1",
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && !isInDiffEditor && !isMergeEditor && resourceScheme == file && git.activeResourceHasUnstagedChanges"
},
{
"command": "git.unstage",
"group": "navigation@1",
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && !isInDiffEditor && !isMergeEditor && resourceScheme == file && git.activeResourceHasStagedChanges"
},
{
"command": "git.openChange",
"group": "navigation",
"group": "navigation@2",
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && !isInDiffEditor && !isMergeEditor && resourceScheme == file && scmActiveResourceHasChanges"
},
{