vscode: amend server installation logic to account for nightlies

This commit is contained in:
Veetaha 2020-03-09 19:57:55 +02:00
parent 601fc9d1ab
commit 1e73811fbe
3 changed files with 57 additions and 52 deletions

View file

@ -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);
};
}