0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-09 13:49:37 -04:00

fix(lsp): handle get diagnostic errors better (#14776)

This commit is contained in:
Kitson Kelly 2022-06-03 22:23:33 +10:00 committed by cjihrig
parent 783f7661ef
commit 90d82be83c
No known key found for this signature in database
GPG key ID: 7434390BDBE9B9C5

View file

@ -747,7 +747,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 {