aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorivan770 <[email protected]>2021-02-13 11:22:12 +0000
committerivan770 <[email protected]>2021-02-13 11:22:12 +0000
commit02ad828c6dc544ac2fb20b85d85ccf6ea495df9c (patch)
treedfc296e84e9ae8b7a666ca3452dd88b1bed5afef /crates
parent185da286d26ea7f892097c48b79a28acd7e5f172 (diff)
Fix incorrect references annotation
Diffstat (limited to 'crates')
-rw-r--r--crates/ide/src/annotations.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/ide/src/annotations.rs b/crates/ide/src/annotations.rs
index 6d54b6b57..a6f093ad7 100644
--- a/crates/ide/src/annotations.rs
+++ b/crates/ide/src/annotations.rs
@@ -129,9 +129,10 @@ pub(crate) fn resolve_annotation(db: &RootDatabase, mut annotation: Annotation)
129 result 129 result
130 .references 130 .references
131 .into_iter() 131 .into_iter()
132 .map(|(_, access)| access.into_iter()) 132 .map(|(file_id, access)| {
133 access.into_iter().map(move |(range, _)| FileRange { file_id, range })
134 })
133 .flatten() 135 .flatten()
134 .map(|(range, _)| FileRange { file_id: position.file_id, range })
135 .collect() 136 .collect()
136 }); 137 });
137 } 138 }