From 5c40ad440705d9bfc9a12092129455296fac8b20 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Tue, 30 Jul 2024 08:23:17 +0200 Subject: [PATCH] fix: Fix incorrect retrying of inlay hint requests --- crates/rust-analyzer/src/main_loop.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/rust-analyzer/src/main_loop.rs b/crates/rust-analyzer/src/main_loop.rs index 58d73611c6..9c820749ec 100644 --- a/crates/rust-analyzer/src/main_loop.rs +++ b/crates/rust-analyzer/src/main_loop.rs @@ -1053,11 +1053,10 @@ impl GlobalState { .on::(handlers::handle_goto_declaration) .on::(handlers::handle_goto_implementation) .on::(handlers::handle_goto_type_definition) - // FIXME: This should not be tried as it contains offsets that can get outdated! - .on::(handlers::handle_inlay_hints) - .on::(handlers::handle_inlay_hints_resolve) + .on::(handlers::handle_inlay_hints) + .on::(handlers::handle_inlay_hints_resolve) .on::(handlers::handle_code_lens) - .on::(handlers::handle_code_lens_resolve) + .on::(handlers::handle_code_lens_resolve) .on::(handlers::handle_prepare_rename) .on::(handlers::handle_rename) .on::(handlers::handle_references)