Skip to content

Commit fd298b3

Browse files
committed
fix: Cleanup output channels when restarting server
1 parent d38b7b8 commit fd298b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

editors/code/src/ctx.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ export class Ctx {
4343
const res = new Ctx(config, extCtx, client, serverPath, statusBar);
4444

4545
res.pushCleanup(client.start());
46+
res.pushCleanup(client.traceOutputChannel);
47+
res.pushCleanup(client.outputChannel);
4648
await client.onReady();
4749
client.onNotification(ra.serverStatus, (params) => res.setServerStatus(params));
4850
return res;

0 commit comments

Comments
 (0)