File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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" ,
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" : [
You can’t perform that action at this time.
0 commit comments