Git - fix when clause for keybindings (#236053)

This commit is contained in:
Ladislau Szomoru
2024-12-13 14:54:30 +01:00
committed by GitHub
parent 380de2f146
commit 771c5177d3

View File

@@ -943,7 +943,7 @@
"command": "git.stageSelectedRanges",
"key": "ctrl+k ctrl+alt+s",
"mac": "cmd+k cmd+alt+s",
"when": "resourceScheme =~ /^git$|^file$/"
"when": "editorTextFocus && resourceScheme =~ /^git$|^file$/"
},
{
"command": "git.unstageSelectedRanges",
@@ -955,7 +955,7 @@
"command": "git.revertSelectedRanges",
"key": "ctrl+k ctrl+r",
"mac": "cmd+k cmd+r",
"when": "resourceScheme =~ /^git$|^file$/"
"when": "editorTextFocus && resourceScheme =~ /^git$|^file$/"
}
],
"menus": {