aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/commands
diff options
context:
space:
mode:
authorVeetaha <[email protected]>2020-03-27 09:05:37 +0000
committerGitHub <[email protected]>2020-03-27 09:05:37 +0000
commit51156cbf030439525d4aa5182acd7e72a699c542 (patch)
treeb4c416ea40aa656517754eb00964445d81bf27ef /editors/code/src/commands
parent0072aa31ed1d3d441ec5cf4057286a9b27de78af (diff)
vscode: fix release tag retrieval
Co-Authored-By: LaurenČ›iu Nicola <[email protected]>
Diffstat (limited to 'editors/code/src/commands')
-rw-r--r--editors/code/src/commands/server_version.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/code/src/commands/server_version.ts b/editors/code/src/commands/server_version.ts
index 45fdefb12..d64ac726e 100644
--- a/editors/code/src/commands/server_version.ts
+++ b/editors/code/src/commands/server_version.ts
@@ -6,7 +6,7 @@ export function serverVersion(ctx: Ctx): Cmd {
6 return async () => { 6 return async () => {
7 const { stdout } = spawnSync(ctx.serverPath, ["--version"], { encoding: "utf8" }); 7 const { stdout } = spawnSync(ctx.serverPath, ["--version"], { encoding: "utf8" });
8 const commitHash = stdout.slice(`rust-analyzer `.length).trim(); 8 const commitHash = stdout.slice(`rust-analyzer `.length).trim();
9 const { releaseTag } = ctx.config; 9 const { releaseTag } = ctx.config.package;
10 10
11 void vscode.window.showInformationMessage( 11 void vscode.window.showInformationMessage(
12 `rust-analyzer version: ${releaseTag ?? "unreleased"} (${commitHash})` 12 `rust-analyzer version: ${releaseTag ?? "unreleased"} (${commitHash})`