Skip to content

Commit 51156cb

Browse files
Veetahalnicola
andauthored
vscode: fix release tag retrieval
Co-Authored-By: Laurențiu Nicola <lnicola@users.noreply.github.com>
1 parent 0072aa3 commit 51156cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editors/code/src/commands/server_version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export function serverVersion(ctx: Ctx): Cmd {
66
return async () => {
77
const { stdout } = spawnSync(ctx.serverPath, ["--version"], { encoding: "utf8" });
88
const commitHash = stdout.slice(`rust-analyzer `.length).trim();
9-
const { releaseTag } = ctx.config;
9+
const { releaseTag } = ctx.config.package;
1010

1111
void vscode.window.showInformationMessage(
1212
`rust-analyzer version: ${releaseTag ?? "unreleased"} (${commitHash})`

0 commit comments

Comments
 (0)