mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 04:23:25 +00:00
vscode: fix release tag retrieval
Co-Authored-By: Laurențiu Nicola <lnicola@users.noreply.github.com>
This commit is contained in:
parent
0072aa31ed
commit
51156cbf03
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ export function serverVersion(ctx: Ctx): Cmd {
|
|||
return async () => {
|
||||
const { stdout } = spawnSync(ctx.serverPath, ["--version"], { encoding: "utf8" });
|
||||
const commitHash = stdout.slice(`rust-analyzer `.length).trim();
|
||||
const { releaseTag } = ctx.config;
|
||||
const { releaseTag } = ctx.config.package;
|
||||
|
||||
void vscode.window.showInformationMessage(
|
||||
`rust-analyzer version: ${releaseTag ?? "unreleased"} (${commitHash})`
|
||||
|
|
Loading…
Reference in a new issue