@@ -417,20 +417,20 @@ export class CommandCenter {
417
417
}
418
418
419
419
420
- type InputData = { uri : Uri ; detail ?: string ; description ?: string } ;
420
+ type InputData = { uri : Uri ; title ?: string ; detail ?: string ; description ?: string } ;
421
421
const mergeUris = toMergeUris ( uri ) ;
422
- const input1 : InputData = { uri : mergeUris . ours } ;
423
- const input2 : InputData = { uri : mergeUris . theirs } ;
422
+ const ours : InputData = { uri : mergeUris . ours , title : localize ( 'Yours' , 'Yours' ) } ;
423
+ const theirs : InputData = { uri : mergeUris . theirs , title : localize ( 'Theirs' , 'Theirs' ) } ;
424
424
425
425
try {
426
426
const [ head , mergeHead ] = await Promise . all ( [ repo . getCommit ( 'HEAD' ) , repo . getCommit ( 'MERGE_HEAD' ) ] ) ;
427
427
// ours (current branch and commit)
428
- input1 . detail = head . refNames . map ( s => s . replace ( / ^ H E A D - > / , '' ) ) . join ( ', ' ) ;
429
- input1 . description = head . hash . substring ( 0 , 7 ) ;
428
+ ours . detail = head . refNames . map ( s => s . replace ( / ^ H E A D - > / , '' ) ) . join ( ', ' ) ;
429
+ ours . description = head . hash . substring ( 0 , 7 ) ;
430
430
431
431
// theirs
432
- input2 . detail = mergeHead . refNames . join ( ', ' ) ;
433
- input2 . description = mergeHead . hash . substring ( 0 , 7 ) ;
432
+ theirs . detail = mergeHead . refNames . join ( ', ' ) ;
433
+ theirs . description = mergeHead . hash . substring ( 0 , 7 ) ;
434
434
435
435
} catch ( error ) {
436
436
// not so bad, can continue with just uris
@@ -440,8 +440,8 @@ export class CommandCenter {
440
440
441
441
const options = {
442
442
ancestor : mergeUris . base ,
443
- input1,
444
- input2,
443
+ input1 : theirs ,
444
+ input2 : ours ,
445
445
output : uri
446
446
} ;
447
447
0 commit comments