mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Only report unique text ranges in highlight_related
This commit is contained in:
parent
72bfbb0691
commit
99f1e66997
3 changed files with 8 additions and 10 deletions
|
@ -538,6 +538,8 @@ impl<'db> SemanticsImpl<'db> {
|
|||
res
|
||||
}
|
||||
|
||||
// Note this return type is deliberate as [`find_nodes_at_offset_with_descend`] wants to stop
|
||||
// traversing the inner iterator when it finds a node.
|
||||
fn descend_node_at_offset(
|
||||
&self,
|
||||
node: &SyntaxNode,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue