From 13c095aaf1b6008d8e4a032008b9fcd6e79a0df5 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 --- .../rust-analyzer/crates/rust-analyzer/src/main_loop.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/tools/rust-analyzer/crates/rust-analyzer/src/main_loop.rs b/src/tools/rust-analyzer/crates/rust-analyzer/src/main_loop.rs index 58d73611c63..9c820749ece 100644 --- a/src/tools/rust-analyzer/crates/rust-analyzer/src/main_loop.rs +++ b/src/tools/rust-analyzer/crates/rust-analyzer/src/main_loop.rs @@ -1053,11 +1053,10 @@ fn on_request(&mut self, req: Request) { .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)