mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-14 17:07:26 +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);
|
const res = new Ctx(config, extCtx, client, serverPath, statusBar);
|
||||||
|
|
||||||
res.pushCleanup(client.start());
|
res.pushCleanup(client.start());
|
||||||
|
res.pushCleanup(client.traceOutputChannel);
|
||||||
|
res.pushCleanup(client.outputChannel);
|
||||||
await client.onReady();
|
await client.onReady();
|
||||||
client.onNotification(ra.serverStatus, (params) => res.setServerStatus(params));
|
client.onNotification(ra.serverStatus, (params) => res.setServerStatus(params));
|
||||||
return res;
|
return res;
|
||||||
|
|
Loading…
Reference in a new issue