fix: make goto_implementation multi-token mapping aware

This commit is contained in:
Lukas Wirth 2021-09-01 14:51:37 +02:00
parent 25368d2430
commit 68bf359363
2 changed files with 66 additions and 47 deletions

View file

@ -442,9 +442,7 @@ impl<'a> FindUsages<'a> {
continue;
}
if let Some(ast::NameLike::NameRef(name_ref)) =
sema.find_node_at_offset_with_descend(&tree, offset)
{
for name_ref in sema.find_nodes_at_offset_with_descend(&tree, offset) {
if self.found_self_module_name_ref(&name_ref, sink) {
return;
}