mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Allow navigation targets to be duplicated when the focus range lies in the macro definition site
This commit is contained in:
parent
9b7ec5e31b
commit
9cb13b6efb
38 changed files with 851 additions and 488 deletions
|
@ -315,6 +315,7 @@ impl HirWrite for InlayHintLabelBuilder<'_> {
|
|||
}
|
||||
self.make_new_part();
|
||||
let Some(location) = ModuleDef::from(def).try_to_nav(self.db) else { return };
|
||||
let location = location.call_site();
|
||||
let location =
|
||||
FileRange { file_id: location.file_id, range: location.focus_or_full_range() };
|
||||
self.location = Some(location);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue