Skip to content

Commit 771c517

Browse files
authored
Git - fix when clause for keybindings (microsoft#236053)
1 parent 380de2f commit 771c517

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/git/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@
943943
"command": "git.stageSelectedRanges",
944944
"key": "ctrl+k ctrl+alt+s",
945945
"mac": "cmd+k cmd+alt+s",
946-
"when": "resourceScheme =~ /^git$|^file$/"
946+
"when": "editorTextFocus && resourceScheme =~ /^git$|^file$/"
947947
},
948948
{
949949
"command": "git.unstageSelectedRanges",
@@ -955,7 +955,7 @@
955955
"command": "git.revertSelectedRanges",
956956
"key": "ctrl+k ctrl+r",
957957
"mac": "cmd+k cmd+r",
958-
"when": "resourceScheme =~ /^git$|^file$/"
958+
"when": "editorTextFocus && resourceScheme =~ /^git$|^file$/"
959959
}
960960
],
961961
"menus": {

0 commit comments

Comments
 (0)