From 9e8422610146c6a5ebd24ca3ce7436103f002bfd Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Mon, 21 Sep 2020 01:09:52 -0400 Subject: [PATCH] Fixes rogue comma --- src/commands/quickCommand.steps.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/commands/quickCommand.steps.ts b/src/commands/quickCommand.steps.ts index b5afa8f..792c452 100644 --- a/src/commands/quickCommand.steps.ts +++ b/src/commands/quickCommand.steps.ts @@ -1782,9 +1782,11 @@ function getShowRepositoryStatusStepItems< } else { workingTreeStatus = `$(files) ${ computed.staged ? `${Strings.pluralize('staged file', computed.staged)} (${computed.stagedStatus})` : '' - }, ${ + }${ computed.unstaged - ? `${Strings.pluralize('unstaged file', computed.unstaged)} (${computed.unstagedStatus})` + ? `${computed.staged ? ', ' : ''}${Strings.pluralize('unstaged file', computed.unstaged)} (${ + computed.unstagedStatus + })` : '' }`; }