Unnamed repository; edit this file 'description' to name the repository.
Auto merge of #12470 - Veykril:output-ch, r=Veykril
fix: Cleanup output channels when restarting server Fixes https://github.com/rust-lang/rust-analyzer/issues/12469
bors 2022-06-05
parent 6d3396a · parent fd298b3 · commit 6667061
-rw-r--r--editors/code/src/ctx.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/editors/code/src/ctx.ts b/editors/code/src/ctx.ts
index 51781b4205..f4f8c5b73e 100644
--- a/editors/code/src/ctx.ts
+++ b/editors/code/src/ctx.ts
@@ -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;