Skip to content

Commit 05b989b

Browse files
committed
Comment on why the range only covers the LHS
1 parent 2032df1 commit 05b989b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/ark/src/lsp/indexer.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,8 @@ fn index_assignment(
285285
}
286286
}
287287

288+
// Note that unlike document symbols whose ranges cover the whole entity
289+
// they represent, the range of workspace symbols only cover the identifers
288290
let start = convert_point_to_position(contents, lhs.start_position());
289291
let end = convert_point_to_position(contents, lhs.end_position());
290292

0 commit comments

Comments
 (0)