From ecf436b189b3c7c74528c9eec154f8a0c6d03431 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Mon, 14 Dec 2020 20:59:13 -0500 Subject: [PATCH] Fixes create branch/tag quick pick titles --- src/commands/git/branch.ts | 2 +- src/commands/git/tag.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/git/branch.ts b/src/commands/git/branch.ts index 5d9fe98..a0e1985 100644 --- a/src/commands/git/branch.ts +++ b/src/commands/git/branch.ts @@ -266,7 +266,7 @@ export class BranchGitCommand extends QuickCommand { if (state.counter < 4 || state.name == null) { const result = yield* inputBranchNameStep(state, context, { placeholder: 'Please provide a name for the new branch', - titleContext: ` ${GitReference.toString(state.reference, { capitalize: true, icon: false })}`, + titleContext: ` from ${GitReference.toString(state.reference, { capitalize: true, icon: false })}`, value: state.name ?? GitReference.getNameWithoutRemote(state.reference), }); if (result === StepResult.Break) continue; diff --git a/src/commands/git/tag.ts b/src/commands/git/tag.ts index fbcda37..28517ff 100644 --- a/src/commands/git/tag.ts +++ b/src/commands/git/tag.ts @@ -235,7 +235,7 @@ export class TagGitCommand extends QuickCommand { if (state.counter < 4 || state.name == null) { const result = yield* inputTagNameStep(state, context, { placeholder: 'Please provide a name for the new tag', - titleContext: ` at ${GitReference.toString(state.reference, { icon: false })}`, + titleContext: ` at ${GitReference.toString(state.reference, { capitalize: true, icon: false })}`, value: state.name ?? GitReference.getNameWithoutRemote(state.reference), }); if (result === StepResult.Break) continue; @@ -273,7 +273,7 @@ export class TagGitCommand extends QuickCommand { ): StepResultGenerator { const step = QuickCommand.createInputStep({ title: appendReposToTitle( - `${context.title} at ${GitReference.toString(state.reference, { icon: false })}`, + `${context.title} at ${GitReference.toString(state.reference, { capitalize: true, icon: false })}`, state, context, ),