Use proper inlay hint range when filtering out hints (#41363)
Follow-up of https://github.com/zed-industries/zed/pull/40183 Release Notes: - N/A --------- Co-authored-by: Lukas Wirth <lukas@zed.dev>
This commit is contained in:
co-authored by
Lukas Wirth
parent
8a01e48339
commit
5423fafc83
@@ -6844,7 +6844,7 @@ impl LspStore {
|
||||
&& range.start.is_valid(&buffer_snapshot)
|
||||
&& range.end.is_valid(&buffer_snapshot)
|
||||
&& hint.position.cmp(&range.start, &buffer_snapshot).is_ge()
|
||||
&& hint.position.cmp(&range.end, &buffer_snapshot).is_le()
|
||||
&& hint.position.cmp(&range.end, &buffer_snapshot).is_lt()
|
||||
});
|
||||
(server_id, new_hints)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user