From 58fe02e79b2a39eec005beba3badc38a2211e6f8 Mon Sep 17 00:00:00 2001 From: Joao Moreno Date: Thu, 27 Sep 2018 09:42:35 +0200 Subject: [PATCH] Revert "cancelled git.checkout" This reverts commit a488569052c62a30a9b726fb2fdc1fa199f6d9af. --- extensions/git/src/commands.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/extensions/git/src/commands.ts b/extensions/git/src/commands.ts index e72f0986ef2..0a79555fd4a 100755 --- a/extensions/git/src/commands.ts +++ b/extensions/git/src/commands.ts @@ -1373,7 +1373,7 @@ export class CommandCenter { const choice = await window.showQuickPick(picks, { placeHolder }); if (!choice) { - throw new Error('Cancelled'); + return; } await choice.run(repository); @@ -1948,10 +1948,6 @@ 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