aboutsummaryrefslogtreecommitdiff
path: root/editors/code
diff options
context:
space:
mode:
authorEdwin Cheng <[email protected]>2020-02-21 07:51:55 +0000
committerEdwin Cheng <[email protected]>2020-02-21 10:33:45 +0000
commit319a09847b47086b73ea7184ee39b3be0b924c60 (patch)
treea6570ab4e6691853804a71598135f5541723f691 /editors/code
parent489be40d3a6181b0eb0ee71e8b399692b639baf4 (diff)
Use stdout directly
Diffstat (limited to 'editors/code')
-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}