Git - hide git.diff.stageHunk and git.diff.stageSelection commands from the command palette when not in diff editor (#234163)

This commit is contained in:
Ladislau Szomoru
2024-11-19 10:40:17 +01:00
committed by GitHub
parent a878a1576a
commit e222bb40e0

View File

@@ -1477,6 +1477,14 @@
{
"command": "git.cherryPickRef",
"when": "false"
},
{
"command": "git.diff.stageHunk",
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && diffEditorOriginalUri =~ /^git\\:.*%22ref%22%3A%22~%22%7D$/"
},
{
"command": "git.diff.stageSelection",
"when": "config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && diffEditorOriginalUri =~ /^git\\:.*%22ref%22%3A%22~%22%7D$/"
}
],
"scm/title": [