Skip to content

Commit 6667061

Browse files
committed
Auto merge of rust-lang#12470 - Veykril:output-ch, r=Veykril
fix: Cleanup output channels when restarting server Fixes rust-lang/rust-analyzer#12469
2 parents 6d3396a + fd298b3 commit 6667061

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)