lsp: Add support for default rename behavior in prepareRename request (#24246)

Fixes #24184

Release Notes:

- Fixed renaming not working with some language servers (e.g. hls)
This commit is contained in:
Piotr Osiewicz 2025-02-05 13:27:57 +01:00 committed by GitHub
parent fef567bb49
commit 88b5f069fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 21 additions and 19 deletions

View file

@ -724,6 +724,9 @@ impl LanguageServer {
}),
rename: Some(RenameClientCapabilities {
prepare_support: Some(true),
prepare_support_default_behavior: Some(
PrepareSupportDefaultBehavior::IDENTIFIER,
),
..Default::default()
}),
hover: Some(HoverClientCapabilities {