Skip to content

Commit e2aac2a

Browse files
committed
related to microsoft#42532
1 parent 2860393 commit e2aac2a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

extensions/git/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@
809809
{
810810
"command": "git.openFile",
811811
"group": "navigation",
812-
"when": "config.git.enabled && gitOpenRepositoryCount != 0 && isInDiffEditor && resourceScheme =~ /git|file/"
812+
"when": "config.git.enabled && gitOpenRepositoryCount != 0 && isInDiffEditor && resourceScheme =~ /^git$|^file$/"
813813
},
814814
{
815815
"command": "git.openChange",
@@ -819,17 +819,17 @@
819819
{
820820
"command": "git.stageSelectedRanges",
821821
"group": "2_git@1",
822-
"when": "config.git.enabled && gitOpenRepositoryCount != 0 && isInDiffEditor && resourceScheme =~ /git|file/"
822+
"when": "config.git.enabled && gitOpenRepositoryCount != 0 && isInDiffEditor && resourceScheme =~ /^git$|^file$/"
823823
},
824824
{
825825
"command": "git.unstageSelectedRanges",
826826
"group": "2_git@2",
827-
"when": "config.git.enabled && gitOpenRepositoryCount != 0 && isInDiffEditor && resourceScheme =~ /git|file/"
827+
"when": "config.git.enabled && gitOpenRepositoryCount != 0 && isInDiffEditor && resourceScheme =~ /^git$|^file$/"
828828
},
829829
{
830830
"command": "git.revertSelectedRanges",
831831
"group": "2_git@3",
832-
"when": "config.git.enabled && gitOpenRepositoryCount != 0 && isInDiffEditor && resourceScheme =~ /git|file/"
832+
"when": "config.git.enabled && gitOpenRepositoryCount != 0 && isInDiffEditor && resourceScheme =~ /^git$|^file$/"
833833
}
834834
],
835835
"scm/change/title": [

0 commit comments

Comments
 (0)