Browse Source

Adds current branch hint to quickpick

main
Eric Amodio 6 years ago
parent
commit
106259eb17
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      src/quickpicks/branchesAndTagsQuickPick.ts

+ 5
- 1
src/quickpicks/branchesAndTagsQuickPick.ts View File

@ -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() {

Loading…
Cancel
Save