Move config to Ctx

This commit is contained in:
Aleksey Kladov 2019-12-31 17:28:01 +01:00
parent e4b588868f
commit 433000be34
3 changed files with 5 additions and 7 deletions

View file

@ -31,7 +31,7 @@ export async function activate(context: vscode.ExtensionContext) {
ctx.overrideCommand('type', commands.onEnter);
}
const startServer = () => Server.start();
const startServer = () => Server.start(ctx.config);
const reloadCommand = () => reloadServer(startServer);
vscode.commands.registerCommand('rust-analyzer.reload', reloadCommand);