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:
parent
2b5f46080e
commit
b00628f5ff
|
|
@ -161,6 +161,7 @@ impl LspTransport {
|
||||||
) -> io::Result<Self> {
|
) -> io::Result<Self> {
|
||||||
let mut cmd = Command::new(command);
|
let mut cmd = Command::new(command);
|
||||||
cmd.args(args)
|
cmd.args(args)
|
||||||
|
.env("NODE_NO_WARNINGS", "1")
|
||||||
.stdin(Stdio::piped())
|
.stdin(Stdio::piped())
|
||||||
.stdout(Stdio::piped())
|
.stdout(Stdio::piped())
|
||||||
.stderr(Stdio::inherit());
|
.stderr(Stdio::inherit());
|
||||||
|
|
@ -458,7 +459,8 @@ impl LspTransport {
|
||||||
c
|
c
|
||||||
};
|
};
|
||||||
|
|
||||||
cmd.stdin(Stdio::piped())
|
cmd.env("NODE_NO_WARNINGS", "1")
|
||||||
|
.stdin(Stdio::piped())
|
||||||
.stdout(Stdio::piped())
|
.stdout(Stdio::piped())
|
||||||
.stderr(Stdio::inherit());
|
.stderr(Stdio::inherit());
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue