mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-07 18:58:51 +00:00
13 lines
420 B
TypeScript
13 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);
|
||
|
}
|
||
|
}
|