Simplify TS reload logic

Fixes #3164
This commit is contained in:
Aleksey Kladov 2020-02-17 12:17:01 +01:00
parent fcf15cc05a
commit dcdbbddd16
6 changed files with 51 additions and 23 deletions

View file

@ -51,10 +51,3 @@ export function selectAndApplySourceChange(ctx: Ctx): Cmd {
}
};
}
export function reload(ctx: Ctx): Cmd {
return async () => {
vscode.window.showInformationMessage('Reloading rust-analyzer...');
await ctx.restartServer();
};
}