mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-27 20:35:09 +00:00
Use stdout directly
This commit is contained in:
parent
489be40d3a
commit
319a09847b
1 changed files with 1 additions and 2 deletions
|
@ -14,8 +14,7 @@ export function serverVersion(ctx: Ctx): Cmd {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const res = spawnSync(binaryPath, ["--version"]);
|
const version = spawnSync(binaryPath, ["--version"], { encoding: "utf8" }).stdout;
|
||||||
const version = res.output?.filter(x => x !== null).map(String).join(" ");
|
|
||||||
vscode.window.showInformationMessage('rust-analyzer version : ' + version);
|
vscode.window.showInformationMessage('rust-analyzer version : ' + version);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue