X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=crates%2Frust-analyzer%2Fsrc%2Fcaps.rs;h=457399a61898f03328c92e6a48bcc5df48c94e55;hb=0b53744f2d7e0694cd7207cca632fd6de1dc5bff;hp=1823fddc086bc240d10995706519a05967aa6f20;hpb=bb1987b45e90a4f4bceabe4added1998dc0b2092;p=rust.git diff --git a/crates/rust-analyzer/src/caps.rs b/crates/rust-analyzer/src/caps.rs index 1823fddc086..457399a6189 100644 --- a/crates/rust-analyzer/src/caps.rs +++ b/crates/rust-analyzer/src/caps.rs @@ -20,7 +20,7 @@ pub fn server_capabilities(config: &Config) -> ServerCapabilities { ServerCapabilities { text_document_sync: Some(TextDocumentSyncCapability::Options(TextDocumentSyncOptions { open_close: Some(true), - change: Some(TextDocumentSyncKind::Incremental), + change: Some(TextDocumentSyncKind::INCREMENTAL), will_save: None, will_save_wait_until: None, save: Some(SaveOptions::default().into()), @@ -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, + "moveItem": true, "onEnter": true, + "openCargoToml": true, "parentModule": true, - "hoverRange": true, "runnables": { "kinds": [ "cargo" ], }, + "ssr": true, "workspaceSymbolScopeKindFiltering": true, })), }