mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
fix: multi-token mapping aware find references
This commit is contained in:
parent
81ab52c6ca
commit
bdba35cc93
7 changed files with 155 additions and 86 deletions
|
@ -134,8 +134,8 @@ pub(crate) fn resolve_annotation(db: &RootDatabase, mut annotation: Annotation)
|
|||
AnnotationKind::HasReferences { position, data } => {
|
||||
*data = find_all_refs(&Semantics::new(db), *position, None).map(|result| {
|
||||
result
|
||||
.references
|
||||
.into_iter()
|
||||
.flat_map(|res| res.references)
|
||||
.map(|(file_id, access)| {
|
||||
access.into_iter().map(move |(range, _)| FileRange { file_id, range })
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue