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:
parent
783f7661ef
commit
90d82be83c
1 changed files with 4 additions and 1 deletions
|
@ -747,7 +747,10 @@ delete Object.prototype.__proto__;
|
||||||
}
|
}
|
||||||
return respond(id, diagnosticMap);
|
return respond(id, diagnosticMap);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
if (!(e instanceof OperationCanceledError)) {
|
if (
|
||||||
|
!(e instanceof OperationCanceledError ||
|
||||||
|
e instanceof ts.OperationCanceledException)
|
||||||
|
) {
|
||||||
if ("stack" in e) {
|
if ("stack" in e) {
|
||||||
error(e.stack);
|
error(e.stack);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue