mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-17 07:45:08 +00:00
Substitute VSCode variables more generally
This commit is contained in:
parent
e46c242a38
commit
ec9476015c
5 changed files with 87 additions and 85 deletions
|
@ -117,7 +117,7 @@ export function isValidExecutable(path: string): boolean {
|
|||
|
||||
const res = spawnSync(path, ["--version"], { encoding: "utf8" });
|
||||
|
||||
const printOutput = res.error && (res.error as any).code !== "ENOENT" ? log.warn : log.debug;
|
||||
const printOutput = res.error ? log.warn : log.info;
|
||||
printOutput(path, "--version:", res);
|
||||
|
||||
return res.status === 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue