From a488569052c62a30a9b726fb2fdc1fa199f6d9af Mon Sep 17 00:00:00 2001 From: Joao Moreno Date: Mon, 24 Sep 2018 11:07:49 +0200 Subject: [PATCH] cancelled git.checkout --- extensions/git/src/commands.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/extensions/git/src/commands.ts b/extensions/git/src/commands.ts index 9a22ca4632d..d3f3c625805 100755 --- a/extensions/git/src/commands.ts +++ b/extensions/git/src/commands.ts @@ -1369,7 +1369,7 @@ export class CommandCenter { const choice = await window.showQuickPick(picks, { placeHolder }); if (!choice) { - return; + throw new Error('Cancelled'); } await choice.run(repository); @@ -1944,6 +1944,10 @@ export class CommandCenter { this.telemetryReporter.sendTelemetryEvent('git.command', { command: id }); return result.catch(async err => { + if (err.message === 'Cancelled') { + return; + } + const options: MessageOptions = { modal: true }; -- GitLab