aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/commands
diff options
context:
space:
mode:
authorVeetaha <[email protected]>2020-03-09 17:57:55 +0000
committerVeetaha <[email protected]>2020-03-14 00:01:46 +0000
commit1e73811fbe634efec90a3e009a84fd8dda9f5697 (patch)
treec87cff735a65fcc1c8d6c46d2dd8a9148f359c24 /editors/code/src/commands
parent601fc9d1abf52c16356d49b6c540b31718e62b88 (diff)
vscode: amend server installation logic to account for nightlies
Diffstat (limited to 'editors/code/src/commands')
-rw-r--r--editors/code/src/commands/server_version.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/editors/code/src/commands/server_version.ts b/editors/code/src/commands/server_version.ts
index 421301b42..c4d84b443 100644
--- a/editors/code/src/commands/server_version.ts
+++ b/editors/code/src/commands/server_version.ts
@@ -5,7 +5,7 @@ import { spawnSync } from 'child_process';
5 5
6export function serverVersion(ctx: Ctx): Cmd { 6export function serverVersion(ctx: Ctx): Cmd {
7 return async () => { 7 return async () => {
8 const binaryPath = await ensureServerBinary(ctx.config.serverSource); 8 const binaryPath = await ensureServerBinary(ctx.config);
9 9
10 if (binaryPath == null) { 10 if (binaryPath == null) {
11 throw new Error( 11 throw new Error(
@@ -18,4 +18,3 @@ export function serverVersion(ctx: Ctx): Cmd {
18 vscode.window.showInformationMessage('rust-analyzer version : ' + version); 18 vscode.window.showInformationMessage('rust-analyzer version : ' + version);
19 }; 19 };
20} 20}
21