From 7f79dd4d93f603c9c3001890a8c894f77e7f90ce Mon Sep 17 00:00:00 2001 From: Jean Pierre Date: Tue, 17 Oct 2023 10:18:29 -0500 Subject: [PATCH] Ignore cancelled error --- src/commands/workspaces.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/commands/workspaces.ts b/src/commands/workspaces.ts index f2e4286..1d330ff 100644 --- a/src/commands/workspaces.ts +++ b/src/commands/workspaces.ts @@ -171,6 +171,9 @@ export class ConnectInNewWindowCommand implements Command { } ); } catch (e) { + if (e instanceof vscode.CancellationError) { + return; + } this.logService.error(e); this.telemetryService.sendTelemetryException(new WrapError('Error runnning connectInNewWindow command', e)); throw e; @@ -340,6 +343,9 @@ export class ConnectInCurrentWindowCommand implements Command { } ); } catch (e) { + if (e instanceof vscode.CancellationError) { + return; + } this.logService.error(e); this.telemetryService.sendTelemetryException(new WrapError('Error runnning connectInCurrentWindow command', e)); throw e;