mirror of
https://github.com/denoland/deno.git
synced 2024-12-21 23:04:45 -05:00
fix(lsp): handle get diagnostic errors better (#14776)
This commit is contained in:
parent
de562b0215
commit
5692132755
1 changed files with 4 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue