SCM - Introduce another open changes command got editor/command palette (#138293)

* Introduce another command got editor/command palette
This commit is contained in:
Ladislau Szomoru
2021-12-02 11:40:08 +01:00
committed by GitHub
parent d29de45bdb
commit af8b6ad9f0
2 changed files with 12 additions and 1 deletions

View File

@@ -84,6 +84,12 @@
"command": "git.openChange",
"title": "%command.openChange%",
"category": "Git",
"icon": "$(compare-changes)"
},
{
"command": "git.openChangeEditor",
"title": "%command.openChange%",
"category": "Git",
"icon": "$(compare-changes)",
"enablement": "scmActiveResourceHasChanges"
},
@@ -602,6 +608,10 @@
},
{
"command": "git.openChange",
"when": "false"
},
{
"command": "git.openChangeEditor",
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0"
},
{
@@ -1359,7 +1369,7 @@
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && isInNotebookTextDiffEditor && resourceScheme =~ /^git$|^file$/"
},
{
"command": "git.openChange",
"command": "git.openChangeEditor",
"group": "navigation",
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && !isInDiffEditor && resourceScheme == file"
},