Skip to content

Commit

Permalink
fix: cancel pending geterr request before triggering new (#651)
Browse files Browse the repository at this point in the history
  • Loading branch information
rchl committed Dec 30, 2022
1 parent 7bfda76 commit 95b92e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lsp-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ export class LspServer {
}
protected cancelDiagnostics(): void {
if (this.diagnosticsTokenSource) {
this.diagnosticsTokenSource.cancel();
this.diagnosticsTokenSource = undefined;
}
}
Expand Down

0 comments on commit 95b92e5

Please sign in to comment.