diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2022-06-03 22:23:33 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-03 22:23:33 +1000 |
commit | 56921327553997bc7d25bfb9d5935df77e52f526 (patch) | |
tree | 7f596fd98c630066b9238fe45a1dbd63a06648da /cli/tsc | |
parent | de562b021559341394907baa4786b9144fad694e (diff) |
fix(lsp): handle get diagnostic errors better (#14776)
Diffstat (limited to 'cli/tsc')
-rw-r--r-- | cli/tsc/99_main_compiler.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/tsc/99_main_compiler.js b/cli/tsc/99_main_compiler.js index ac036f082..c8dc56d5b 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 { |