Skip to content

Commit

Permalink
lsp: Handle unregistration "textDocument/rename" from a server
Browse files Browse the repository at this point in the history
  • Loading branch information
vitallium committed Oct 18, 2024
1 parent 9d61cd5 commit 649557c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions crates/project/src/lsp_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 649557c

Please sign in to comment.