mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-13 08:27:17 +00:00
fix: Cleanup output channels when restarting server
This commit is contained in:
parent
d38b7b88c6
commit
fd298b3994
1 changed files with 2 additions and 0 deletions
|
@ -43,6 +43,8 @@ export class Ctx {
|
|||
const res = new Ctx(config, extCtx, client, serverPath, statusBar);
|
||||
|
||||
res.pushCleanup(client.start());
|
||||
res.pushCleanup(client.traceOutputChannel);
|
||||
res.pushCleanup(client.outputChannel);
|
||||
await client.onReady();
|
||||
client.onNotification(ra.serverStatus, (params) => res.setServerStatus(params));
|
||||
return res;
|
||||
|
|
Loading…
Reference in a new issue