Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'editors/code/src/ctx.ts')
-rw-r--r--editors/code/src/ctx.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/editors/code/src/ctx.ts b/editors/code/src/ctx.ts
index f2d4737010..0dea1b87b2 100644
--- a/editors/code/src/ctx.ts
+++ b/editors/code/src/ctx.ts
@@ -42,7 +42,8 @@ export class Ctx {
const res = new Ctx(config, extCtx, client, serverPath, statusBar);
- await client.start();
+ res.pushCleanup(client.start());
+ await client.onReady();
client.onNotification(ra.serverStatus, (params) => res.setServerStatus(params));
return res;
}