mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-02 08:37:42 +00:00
Properly reload changed configs for server start
This commit is contained in:
parent
6f435977df
commit
8aaafddee8
4 changed files with 51 additions and 57 deletions
|
@ -310,6 +310,10 @@ export function ssr(ctx: Ctx): Cmd {
|
|||
|
||||
export function serverVersion(ctx: Ctx): Cmd {
|
||||
return async () => {
|
||||
if (!ctx.serverPath) {
|
||||
void vscode.window.showWarningMessage(`rust-analyzer server is not running`);
|
||||
return;
|
||||
}
|
||||
const { stdout } = spawnSync(ctx.serverPath, ["--version"], { encoding: "utf8" });
|
||||
const versionString = stdout.slice(`rust-analyzer `.length).trim();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue