Unnamed repository; edit this file 'description' to name the repository.
fix: add missing experimental capabilities
Fix #11389 by extending server_capabilities.experimental with matchingBrace, externalDocs, moveItems. Also, sort entries alphabetically.
Felicián Németh 2022-02-12
parent 7a17fb9 · commit 27c4be6
-rw-r--r--crates/rust-analyzer/src/caps.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/crates/rust-analyzer/src/caps.rs b/crates/rust-analyzer/src/caps.rs
index 648f6aeebe..a1acd543c5 100644
--- a/crates/rust-analyzer/src/caps.rs
+++ b/crates/rust-analyzer/src/caps.rs
@@ -113,15 +113,18 @@ pub fn server_capabilities(config: &Config) -> ServerCapabilities {
),
moniker_provider: None,
experimental: Some(json!({
+ "externalDocs": true,
+ "hoverRange": true,
"joinLines": true,
- "openCargoToml": true,
- "ssr": true,
+ "matchingBrace": true,
+ "moveItems": true,
"onEnter": true,
+ "openCargoToml": true,
"parentModule": true,
- "hoverRange": true,
"runnables": {
"kinds": [ "cargo" ],
},
+ "ssr": true,
"workspaceSymbolScopeKindFiltering": true,
})),
}