Skip to content

Commit 7b1c3d3

Browse files
authored
debug: ignore cancellation errors during subsitution (microsoft#255488)
Fixes microsoft#254852 alongside microsoft/vscode-js-debug#2247
1 parent 72c0f44 commit 7b1c3d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/vs/workbench/contrib/debug/browser/debugService.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,9 @@ export class DebugService implements IDebugService {
954954
try {
955955
return await dbg.substituteVariables(folder, config);
956956
} catch (err) {
957-
this.showError(err.message, undefined, !!launch?.getConfiguration(config.name));
957+
if (err.message !== errors.canceledName) {
958+
this.showError(err.message, undefined, !!launch?.getConfiguration(config.name));
959+
}
958960
return undefined; // bail out
959961
}
960962
}

0 commit comments

Comments
 (0)