Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Ignore `initialized` LSP request in prettier wrapper
Kirill Bulatov43d28cc0c1b2
diff --git a/crates/prettier/src/prettier_server.js b/crates/prettier/src/prettier_server.jsindex 191431da0b8..bf62e538dde 100644--- a/crates/prettier/src/prettier_server.js+++ b/crates/prettier/src/prettier_server.js@@ -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)}`);}