diff options
author | Veetaha <[email protected]> | 2020-03-09 17:57:55 +0000 |
---|---|---|
committer | Veetaha <[email protected]> | 2020-03-14 00:01:46 +0000 |
commit | 1e73811fbe634efec90a3e009a84fd8dda9f5697 (patch) | |
tree | c87cff735a65fcc1c8d6c46d2dd8a9148f359c24 /editors/code/src/commands/server_version.ts | |
parent | 601fc9d1abf52c16356d49b6c540b31718e62b88 (diff) |
vscode: amend server installation logic to account for nightlies
Diffstat (limited to 'editors/code/src/commands/server_version.ts')
-rw-r--r-- | editors/code/src/commands/server_version.ts | 3 |
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 | ||
6 | export function serverVersion(ctx: Ctx): Cmd { | 6 | export 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 | |||