File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 78377837 {
78387838 "when" : " viewItem =~ /gitlens:file\\ b(?!.*?\\ b\\ +conflicted\\ b)/" ,
78397839 "group" : " 1_gitlens" ,
7840- "order" : 2
7840+ "order" : 1
78417841 }
78427842 ],
78437843 "view/item/context" : [
80588058 {
80598059 "when" : " viewItem =~ /gitlens:file\\ b(?!.*?\\ b\\ +(conflicted|stashed|staged|unstaged)\\ b)/" ,
80608060 "group" : " 1_gitlens" ,
8061- "order" : 1
8061+ "order" : 2
80628062 }
80638063 ]
80648064 }
Original file line number Diff line number Diff line change @@ -13792,13 +13792,13 @@
1379213792 ],
1379313793 "gitlens/commit/file/changes": [
1379413794 {
13795- "command": "gitlens.views.openPreviousChangesWithWorking ",
13796- "when": "viewItem =~ /gitlens:file\\b(?!.*?\\b\\+( conflicted|stashed|staged|unstaged) \\b)/",
13795+ "command": "gitlens.views.openChangesWithWorking ",
13796+ "when": "viewItem =~ /gitlens:file\\b(?!.*?\\b\\+conflicted\\b)/",
1379713797 "group": "1_gitlens@1"
1379813798 },
1379913799 {
13800- "command": "gitlens.views.openChangesWithWorking ",
13801- "when": "viewItem =~ /gitlens:file\\b(?!.*?\\b\\+conflicted\\b)/",
13800+ "command": "gitlens.views.openPreviousChangesWithWorking ",
13801+ "when": "viewItem =~ /gitlens:file\\b(?!.*?\\b\\+( conflicted|stashed|staged|unstaged) \\b)/",
1380213802 "group": "1_gitlens@2"
1380313803 },
1380413804 {
Original file line number Diff line number Diff line change @@ -1575,7 +1575,7 @@ export class ViewCommands implements Disposable {
15751575
15761576 return CommitActions . openChangesWithWorking ( node . file , {
15771577 repoPath : node . repoPath ,
1578- ref : node . is ( 'results-file' ) ? node . ref2 : node . ref . ref ,
1578+ ref : node . is ( 'results-file' ) && node . ref2 !== '' ? node . ref2 : node . ref . ref ,
15791579 } ) ;
15801580 }
15811581
@@ -1585,7 +1585,7 @@ export class ViewCommands implements Disposable {
15851585
15861586 return CommitActions . openChangesWithWorking ( node . file , {
15871587 repoPath : node . repoPath ,
1588- ref : node . is ( 'results-file' ) ? node . ref1 : `${ node . ref . ref } ^` ,
1588+ ref : node . is ( 'results-file' ) && node . ref2 !== '' ? node . ref1 : `${ node . ref . ref } ^` ,
15891589 } ) ;
15901590 }
15911591
You can’t perform that action at this time.
0 commit comments