diff options
| author | Lukas Wirth <lukastw97@gmail.com> | 2022-07-23 00:14:34 +0200 |
|---|---|---|
| committer | Lukas Wirth <lukastw97@gmail.com> | 2022-07-23 00:14:34 +0200 |
| commit | f1b5e3856317a38db996fe3e01b119aa0f2c3144 (patch) | |
| tree | 5174cffa72e6e0b8439251834cd7d46cf2512302 /editors/code/src | |
| parent | 84a6fac37ad61ff512993ee64b47deff9a52c560 (diff) | |
| download | rust-f1b5e3856317a38db996fe3e01b119aa0f2c3144.tar.gz rust-f1b5e3856317a38db996fe3e01b119aa0f2c3144.zip | |
Revert 03a62c180e6a7300d0d7b8c4d680b749c101bcbb
Diffstat (limited to 'editors/code/src')
| -rw-r--r-- | editors/code/src/client.ts | 4 | ||||
| -rw-r--r-- | editors/code/src/ctx.ts | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/editors/code/src/client.ts b/editors/code/src/client.ts index a8d57a0e684..8a2dea6b35b 100644 --- a/editors/code/src/client.ts +++ b/editors/code/src/client.ts @@ -261,10 +261,6 @@ export async function createClient( } class ExperimentalFeatures implements lc.StaticFeature { - getState(): lc.FeatureState { - return { kind: "static" }; - } - fillClientCapabilities(capabilities: lc.ClientCapabilities): void { const caps: any = capabilities.experimental ?? {}; caps.snippetTextEdit = true; diff --git a/editors/code/src/ctx.ts b/editors/code/src/ctx.ts index f2d47370105..0dea1b87b2f 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; } |
