1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05: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 GitHub
parent de562b0215
commit 5692132755
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {