Procházet zdrojové kódy

Adds better fallback for missing suffixes

main
Eric Amodio před 5 roky
rodič
revize
e6d6ee78ab
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. +3
    -3
      src/commands/diffWith.ts

+ 3
- 3
src/commands/diffWith.ts Zobrazit soubor

@ -126,11 +126,11 @@ export class DiffWithCommand extends ActiveEditorCommand {
rhsSuffix = 'not in Working Tree';
}
else {
rhsSuffix = `deleted in ${rhsSuffix}`;
rhsSuffix = `deleted${rhsSuffix.length === 0 ? '' : ` in ${rhsSuffix}`}`;
}
}
else if (lhs === undefined) {
rhsSuffix = `added in ${rhsSuffix}`;
rhsSuffix = `added${rhsSuffix.length === 0 ? '' : ` in ${rhsSuffix}`}`;
}
let lhsSuffix = args.lhs.sha !== GitService.deletedOrMissingSha ? GitService.shortenSha(lhsSha) || '' : '';
@ -140,7 +140,7 @@ export class DiffWithCommand extends ActiveEditorCommand {
rhsSuffix = '';
}
else {
lhsSuffix = `deleted in ${lhsSuffix})`;
lhsSuffix = `deleted${lhsSuffix.length === 0 ? '' : ` in ${lhsSuffix}`}`;
}
}

||||||
x
 
000:0
Načítá se…
Zrušit
Uložit