From c70178b7eafdbe53b62b416b11f4f059945dba83 Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Mon, 25 Aug 2025 11:09:58 -0400 Subject: [PATCH] Go back to using previous_valid_anchor Co-authored-by: David Kleingeld --- crates/editor/src/hover_links.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/editor/src/hover_links.rs b/crates/editor/src/hover_links.rs index 5fd54aaa76..5f712751b0 100644 --- a/crates/editor/src/hover_links.rs +++ b/crates/editor/src/hover_links.rs @@ -331,14 +331,14 @@ pub fn update_inlay_link_and_hover_points( .max_by_key(|hint| hint.id) { let inlay_hint_cache = editor.inlay_hint_cache(); - let excerpt_id = hovered_hint.position.excerpt_id; + let excerpt_id = previous_valid_anchor.excerpt_id; if let Some(cached_hint) = inlay_hint_cache.hint_by_id(excerpt_id, hovered_hint.id) { // Check if we should process this hint for hover match cached_hint.resolve_state { ResolveState::CanResolve(_, _) => { if let Some(buffer_id) = snapshot .buffer_snapshot - .buffer_id_for_anchor(hovered_hint.position) + .buffer_id_for_anchor(previous_valid_anchor) { inlay_hint_cache.spawn_hint_resolve( buffer_id,