diff --git a/crates/project/src/lsp_store.rs b/crates/project/src/lsp_store.rs index 61f959259d5ab..fe0a6443bc811 100644 --- a/crates/project/src/lsp_store.rs +++ b/crates/project/src/lsp_store.rs @@ -6057,6 +6057,16 @@ impl LspStore { ); })?; } + "textDocument/rename" => { + this.update(&mut cx, |this, _| { + if let Some(server) = this.language_server_for_id(server_id) + { + server.update_capabilities(|capabilities| { + capabilities.rename_provider = None + }) + } + })?; + } "textDocument/rangeFormatting" => { this.update(&mut cx, |this, _| { if let Some(server) = this.language_server_for_id(server_id)