rust-analyzer/editors/code/src/base_client.ts
2023-10-28 16:34:00 +02:00

12 lines
420 B
TypeScript

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);
}
}