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…
Add table
Add a link
Reference in a new issue