提交 a4885690 编写于 作者: J Joao Moreno

cancelled git.checkout

上级 a5ce8783
......@@ -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
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册