about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-02-13 12:35:11 +0000
committerGitHub <noreply@github.com>2022-02-13 12:35:11 +0000
commite1acbd08cab164de2d6abacde2f8a4d6c5947274 (patch)
tree898ab306533d41021787ae4caa4100564dffb3a7
parent7a17fb9c43b2cd0a8a2ff3d93b9d436fa28153d6 (diff)
parent27c4be6b4f6865fcc369f2abff2b4e018c26423b (diff)
downloadrust-e1acbd08cab164de2d6abacde2f8a4d6c5947274.tar.gz
rust-e1acbd08cab164de2d6abacde2f8a4d6c5947274.zip
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 <felician.nemeth@gmail.com>
-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 648f6aeebe7..a1acd543c5f 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,
         })),
     }