Ignore initialized LSP request in prettier wrapper

This commit is contained in:
Kirill Bulatov 2023-11-28 18:56:16 +02:00
parent 465e53ef41
commit 43d28cc0c1

View File

@ -153,7 +153,10 @@ async function handleMessage(message, prettier) {
const { method, id, params } = message;
if (method === undefined) {
throw new Error(`Message method is undefined: ${JSON.stringify(message)}`);
} else if (method == "initialized") {
return;
}
if (id === undefined) {
throw new Error(`Message id is undefined: ${JSON.stringify(message)}`);
}