mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 06:03:58 +00:00
Revert 03a62c180e
This commit is contained in:
parent
84a6fac37a
commit
f1b5e38563
4 changed files with 30 additions and 3983 deletions
4004
editors/code/package-lock.json
generated
4004
editors/code/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -37,7 +37,7 @@
|
|||
"dependencies": {
|
||||
"d3": "^7.6.1",
|
||||
"d3-graphviz": "^4.1.1",
|
||||
"vscode-languageclient": "^8.0.1"
|
||||
"vscode-languageclient": "^8.0.0-next.14"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "~16.11.7",
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue