Przeglądaj źródła

Adds current branch hint to quickpick

main
Eric Amodio 6 lat temu
rodzic
commit
106259eb17
1 zmienionych plików z 5 dodań i 1 usunięć
  1. +5
    -1
      src/quickpicks/branchesAndTagsQuickPick.ts

+ 5
- 1
src/quickpicks/branchesAndTagsQuickPick.ts Wyświetl plik

@ -17,7 +17,11 @@ export class BranchQuickPickItem implements QuickPickItem {
) {
checked = checked || (checked === undefined && branch.current);
this.label = `${checked ? `$(check)${GlyphChars.Space}` : GlyphChars.Space.repeat(4)} ${branch.name}`;
this.description = branch.remote ? `${GlyphChars.Space.repeat(2)} remote branch` : '';
this.description = branch.remote
? `${GlyphChars.Space.repeat(2)} remote branch`
: branch.current
? 'current branch'
: '';
}
get current() {

Ładowanie…
Anuluj
Zapisz