mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 20:13:32 +01:00
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:
@@ -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": [
|
||||
|
||||
Reference in New Issue
Block a user