aboutsummaryrefslogtreecommitdiff
path: root/crates/ide
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ide')
-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 }