Skip to content

Commit 7f79dd4

Browse files
committed
Ignore cancelled error
1 parent 2c9887a commit 7f79dd4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/commands/workspaces.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ export class ConnectInNewWindowCommand implements Command {
171171
}
172172
);
173173
} catch (e) {
174+
if (e instanceof vscode.CancellationError) {
175+
return;
176+
}
174177
this.logService.error(e);
175178
this.telemetryService.sendTelemetryException(new WrapError('Error runnning connectInNewWindow command', e));
176179
throw e;
@@ -340,6 +343,9 @@ export class ConnectInCurrentWindowCommand implements Command {
340343
}
341344
);
342345
} catch (e) {
346+
if (e instanceof vscode.CancellationError) {
347+
return;
348+
}
343349
this.logService.error(e);
344350
this.telemetryService.sendTelemetryException(new WrapError('Error runnning connectInCurrentWindow command', e));
345351
throw e;

0 commit comments

Comments
 (0)