fix: Cleanup output channels when restarting server
This commit is contained in:
parent
d38b7b88c6
commit
fd298b3994
@ -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 New Issue
Block a user