Unnamed repository; edit this file 'description' to name the repository.
Merge #11459
11459: fix: add missing experimental capabilities r=Veykril a=nemethf Fix #11389 by extending server_capabilities.experimental with matchingBrace, externalDocs, moveItems. Also, sort entries alphabetically. Co-authored-by: Felicián Németh <[email protected]>
bors[bot] 2022-02-13
parent 7a17fb9 · parent 27c4be6 · commit e1acbd0
-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,
})),
}