File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,12 @@ export class CopyDeepLinkCommand extends ActiveEditorCommand {
53
53
if ( args == null ) {
54
54
if ( isCommandContextViewNodeHasCommit ( context ) ) {
55
55
args = { refOrRepoPath : context . node . commit } ;
56
+ } else if ( isCommandContextViewNodeHasComparison ( context ) ) {
57
+ args = {
58
+ refOrRepoPath : context . node . uri . fsPath ,
59
+ compareRef : context . node . compareRef ,
60
+ compareWithRef : context . node . compareWithRef ,
61
+ } ;
56
62
} else if ( isCommandContextViewNodeHasBranch ( context ) ) {
57
63
if ( context . command === Commands . CopyDeepLinkToRepo ) {
58
64
args = {
@@ -66,12 +72,6 @@ export class CopyDeepLinkCommand extends ActiveEditorCommand {
66
72
args = { refOrRepoPath : context . node . tag } ;
67
73
} else if ( isCommandContextViewNodeHasRemote ( context ) ) {
68
74
args = { refOrRepoPath : context . node . remote . repoPath , remote : context . node . remote . name } ;
69
- } else if ( isCommandContextViewNodeHasComparison ( context ) ) {
70
- args = {
71
- refOrRepoPath : context . node . uri . fsPath ,
72
- compareRef : context . node . compareRef ,
73
- compareWithRef : context . node . compareWithRef ,
74
- } ;
75
75
} else if ( isCommandContextViewNodeHasWorkspace ( context ) ) {
76
76
args = { workspaceId : context . node . workspace . id } ;
77
77
}
Original file line number Diff line number Diff line change @@ -1562,8 +1562,8 @@ export class DeepLinkService implements Disposable {
1562
1562
1563
1563
if ( compareRef != null && compareWithRef != null ) {
1564
1564
targetType = DeepLinkType . Comparison ;
1565
- targetId = compareRef . label ?? compareRef . ref ;
1566
- compareWithTargetId = compareWithRef . label ?? compareWithRef . ref ;
1565
+ targetId = compareRef . ref ?? compareRef . label ;
1566
+ compareWithTargetId = compareWithRef . ref ?? compareWithRef . label ;
1567
1567
}
1568
1568
1569
1569
let target ;
You can’t perform that action at this time.
0 commit comments