mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-05 08:00:48 +00:00
override language client
This commit is contained in:
parent
f493207744
commit
3e4de963a2
2 changed files with 14 additions and 1 deletions
12
editors/code/src/base_client.ts
Normal file
12
editors/code/src/base_client.ts
Normal 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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue