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> {
|
||||
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());
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue