Substitute VSCode variables more generally

This commit is contained in:
Lukas Wirth 2023-01-24 13:43:56 +01:00
parent e46c242a38
commit ec9476015c
5 changed files with 87 additions and 85 deletions

View file

@ -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;