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:
Kirill Bulatov
2025-10-28 12:58:38 +00:00
committed by GitHub
co-authored by Lukas Wirth
parent 8a01e48339
commit 5423fafc83
2 changed files with 3 additions and 6 deletions
+1 -1
View File
@@ -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)
})