Improve inlay hint cache lookup

This commit is contained in:
Kirill Bulatov 2023-09-14 23:24:55 +03:00
parent 8ae3f79235
commit 4e9f0adcef
3 changed files with 58 additions and 45 deletions

View file

@ -188,7 +188,6 @@ pub fn update_inlay_link_and_hover_points(
Bias::Right,
);
if let Some(hovered_hint) = editor
// TODO kb look up by position with binary search
.visible_inlay_hints(cx)
.into_iter()
.skip_while(|hint| {