mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
vscode: amend server installation logic to account for nightlies
This commit is contained in:
parent
601fc9d1ab
commit
1e73811fbe
3 changed files with 57 additions and 52 deletions
|
@ -5,7 +5,7 @@ import { spawnSync } from 'child_process';
|
|||
|
||||
export function serverVersion(ctx: Ctx): Cmd {
|
||||
return async () => {
|
||||
const binaryPath = await ensureServerBinary(ctx.config.serverSource);
|
||||
const binaryPath = await ensureServerBinary(ctx.config);
|
||||
|
||||
if (binaryPath == null) {
|
||||
throw new Error(
|
||||
|
@ -18,4 +18,3 @@ export function serverVersion(ctx: Ctx): Cmd {
|
|||
vscode.window.showInformationMessage('rust-analyzer version : ' + version);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue