diff --git a/cli/tsc/99_main_compiler.js b/cli/tsc/99_main_compiler.js index ac036f0822..c8dc56d5b9 100644 --- a/cli/tsc/99_main_compiler.js +++ b/cli/tsc/99_main_compiler.js @@ -760,7 +760,10 @@ delete Object.prototype.__proto__; } return respond(id, diagnosticMap); } catch (e) { - if (!(e instanceof OperationCanceledError)) { + if ( + !(e instanceof OperationCanceledError || + e instanceof ts.OperationCanceledException) + ) { if ("stack" in e) { error(e.stack); } else {