File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 84
84
"command" : " git.openChange" ,
85
85
"title" : " %command.openChange%" ,
86
86
"category" : " Git" ,
87
+ "icon" : " $(compare-changes)"
88
+ },
89
+ {
90
+ "command" : " git.openChangeEditor" ,
91
+ "title" : " %command.openChange%" ,
92
+ "category" : " Git" ,
87
93
"icon" : " $(compare-changes)" ,
88
94
"enablement" : " scmActiveResourceHasChanges"
89
95
},
602
608
},
603
609
{
604
610
"command" : " git.openChange" ,
611
+ "when" : " false"
612
+ },
613
+ {
614
+ "command" : " git.openChangeEditor" ,
605
615
"when" : " config.git.enabled && !git.missing && gitOpenRepositoryCount != 0"
606
616
},
607
617
{
1359
1369
"when" : " config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && isInNotebookTextDiffEditor && resourceScheme =~ /^git$|^file$/"
1360
1370
},
1361
1371
{
1362
- "command" : " git.openChange " ,
1372
+ "command" : " git.openChangeEditor " ,
1363
1373
"group" : " navigation" ,
1364
1374
"when" : " config.git.enabled && !git.missing && gitOpenRepositoryCount != 0 && !isInDiffEditor && resourceScheme == file"
1365
1375
},
Original file line number Diff line number Diff line change @@ -764,6 +764,7 @@ export class CommandCenter {
764
764
}
765
765
766
766
@command ( 'git.openChange' )
767
+ @command ( 'git.openChangeEditor' )
767
768
async openChange ( arg ?: Resource | Uri , ...resourceStates : SourceControlResourceState [ ] ) : Promise < void > {
768
769
let resources : Resource [ ] | undefined = undefined ;
769
770
You can’t perform that action at this time.
0 commit comments