fix(lsp): suppress Node.js deprecation warnings from JS-based LSP servers

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 <crush@charm.land>
This commit is contained in:
TheArchitectit 2026-04-28 10:26:47 -05:00
parent 2b5f46080e
commit b00628f5ff
1 changed files with 3 additions and 1 deletions

View File

@ -161,6 +161,7 @@ impl LspTransport {
) -> io::Result<Self> {
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());