override language client

This commit is contained in:
jprochazk 2023-10-28 16:34:00 +02:00
parent f493207744
commit 3e4de963a2
2 changed files with 14 additions and 1 deletions

View file

@ -0,0 +1,12 @@
import * as lc from "vscode-languageclient/node";
export class RaLanguageClient extends lc.LanguageClient {
override error(message: string, data?: any, showNotification?: boolean | "force"): void {
// ignore `Request TYPE failed.` errors
if (message.startsWith("Request") && message.endsWith("failed.")) {
return;
}
super.error(message, data, showNotification);
}
}