From b00628f5ffd8d4fecd4dd5d7d17b13d741907e23 Mon Sep 17 00:00:00 2001 From: TheArchitectit Date: Tue, 28 Apr 2026 10:26:47 -0500 Subject: [PATCH] fix(lsp): suppress Node.js deprecation warnings from JS-based LSP servers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Set NODE_NO_WARNINGS=1 when spawning LSP server processes to suppress noisy punycode deprecation warnings from bash-language-server, yaml-language-server, vscode-* servers, etc. 💘 Generated with Crush Assisted-by: GLM 5.1 FP8 via Crush --- rust/crates/runtime/src/lsp_transport/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rust/crates/runtime/src/lsp_transport/mod.rs b/rust/crates/runtime/src/lsp_transport/mod.rs index abbd41a9..b740f537 100644 --- a/rust/crates/runtime/src/lsp_transport/mod.rs +++ b/rust/crates/runtime/src/lsp_transport/mod.rs @@ -161,6 +161,7 @@ impl LspTransport { ) -> io::Result { let mut cmd = Command::new(command); cmd.args(args) + .env("NODE_NO_WARNINGS", "1") .stdin(Stdio::piped()) .stdout(Stdio::piped()) .stderr(Stdio::inherit()); @@ -458,7 +459,8 @@ impl LspTransport { c }; - cmd.stdin(Stdio::piped()) + cmd.env("NODE_NO_WARNINGS", "1") + .stdin(Stdio::piped()) .stdout(Stdio::piped()) .stderr(Stdio::inherit());