diff --git a/extensions/git/src/commands.ts b/extensions/git/src/commands.ts index e72f0986ef2a6fa6d37441e500b0fde312ff4671..0a79555fd4a7abba7f871118d3178ede1f1dfff3 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 };