aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editors/code/src/commands/server_version.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/editors/code/src/commands/server_version.ts b/editors/code/src/commands/server_version.ts
index 34c18bf3b..421301b42 100644
--- a/editors/code/src/commands/server_version.ts
+++ b/editors/code/src/commands/server_version.ts
@@ -14,8 +14,7 @@ export function serverVersion(ctx: Ctx): Cmd {
14 ); 14 );
15 } 15 }
16 16
17 const res = spawnSync(binaryPath, ["--version"]); 17 const version = spawnSync(binaryPath, ["--version"], { encoding: "utf8" }).stdout;
18 const version = res.output?.filter(x => x !== null).map(String).join(" ");
19 vscode.window.showInformationMessage('rust-analyzer version : ' + version); 18 vscode.window.showInformationMessage('rust-analyzer version : ' + version);
20 }; 19 };
21} 20}