]> git.lizzy.rs Git - rust.git/commitdiff
fix: Cleanup output channels when restarting server
authorLukas Wirth <lukastw97@gmail.com>
Sun, 5 Jun 2022 11:24:39 +0000 (13:24 +0200)
committerLukas Wirth <lukastw97@gmail.com>
Sun, 5 Jun 2022 11:24:39 +0000 (13:24 +0200)
editors/code/src/ctx.ts

index 51781b4205cd40fe103dc19fc9ac8f65380dafd5..f4f8c5b73e2ba94f8d1c1b0b327c32d7b1cf7c53 100644 (file)
@@ -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;