From 27c4be6b4f6865fcc369f2abff2b4e018c26423b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felici=C3=A1n=20N=C3=A9meth?= Date: Sat, 12 Feb 2022 15:32:43 +0100 Subject: [PATCH] fix: add missing experimental capabilities Fix #11389 by extending server_capabilities.experimental with matchingBrace, externalDocs, moveItems. Also, sort entries alphabetically. --- crates/rust-analyzer/src/caps.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/crates/rust-analyzer/src/caps.rs b/crates/rust-analyzer/src/caps.rs index 648f6aeebe7a..a1acd543c5f5 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, })), }