From 106259eb17e2d438768648b2315cf8d5d1ace5ca Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Sat, 3 Nov 2018 01:28:36 -0400 Subject: [PATCH] Adds current branch hint to quickpick --- src/quickpicks/branchesAndTagsQuickPick.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/quickpicks/branchesAndTagsQuickPick.ts b/src/quickpicks/branchesAndTagsQuickPick.ts index 3b79b62..c8e158f 100644 --- a/src/quickpicks/branchesAndTagsQuickPick.ts +++ b/src/quickpicks/branchesAndTagsQuickPick.ts @@ -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() {