vscode: amended config to use binary from globalStoragePath, added ui for downloading

This commit is contained in:
Veetaha
2020-02-08 04:22:44 +02:00
parent 3e0e4e90ae
commit 5d88c1db38
10 changed files with 229 additions and 41 deletions

View File

@@ -29,7 +29,11 @@ export class Ctx {
await old.stop();
}
this.client = null;
const client = createClient(this.config);
const client = await createClient(this.config);
if (!client) {
throw new Error("Rust Analyzer Language Server is not available");
}
this.pushCleanup(client.start());
await client.onReady();