mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-12 21:32:40 +00:00
Ignore initialized
LSP request in prettier wrapper
This commit is contained in:
parent
465e53ef41
commit
43d28cc0c1
1 changed files with 3 additions and 0 deletions
|
@ -153,7 +153,10 @@ async function handleMessage(message, prettier) {
|
||||||
const { method, id, params } = message;
|
const { method, id, params } = message;
|
||||||
if (method === undefined) {
|
if (method === undefined) {
|
||||||
throw new Error(`Message method is undefined: ${JSON.stringify(message)}`);
|
throw new Error(`Message method is undefined: ${JSON.stringify(message)}`);
|
||||||
|
} else if (method == "initialized") {
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (id === undefined) {
|
if (id === undefined) {
|
||||||
throw new Error(`Message id is undefined: ${JSON.stringify(message)}`);
|
throw new Error(`Message id is undefined: ${JSON.stringify(message)}`);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue