Skip to content

Commit 13c095a

Browse files
committed
fix: Fix incorrect retrying of inlay hint requests
1 parent 722f79d commit 13c095a

File tree

1 file changed

+3
-4
lines changed
  • src/tools/rust-analyzer/crates/rust-analyzer/src

1 file changed

+3
-4
lines changed

src/tools/rust-analyzer/crates/rust-analyzer/src/main_loop.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,11 +1053,10 @@ impl GlobalState {
10531053
.on::<NO_RETRY, lsp_request::GotoDeclaration>(handlers::handle_goto_declaration)
10541054
.on::<NO_RETRY, lsp_request::GotoImplementation>(handlers::handle_goto_implementation)
10551055
.on::<NO_RETRY, lsp_request::GotoTypeDefinition>(handlers::handle_goto_type_definition)
1056-
// FIXME: This should not be tried as it contains offsets that can get outdated!
1057-
.on::<RETRY, lsp_request::InlayHintRequest>(handlers::handle_inlay_hints)
1058-
.on::<RETRY, lsp_request::InlayHintResolveRequest>(handlers::handle_inlay_hints_resolve)
1056+
.on::<NO_RETRY, lsp_request::InlayHintRequest>(handlers::handle_inlay_hints)
1057+
.on::<NO_RETRY, lsp_request::InlayHintResolveRequest>(handlers::handle_inlay_hints_resolve)
10591058
.on::<NO_RETRY, lsp_request::CodeLensRequest>(handlers::handle_code_lens)
1060-
.on::<RETRY, lsp_request::CodeLensResolve>(handlers::handle_code_lens_resolve)
1059+
.on::<NO_RETRY, lsp_request::CodeLensResolve>(handlers::handle_code_lens_resolve)
10611060
.on::<NO_RETRY, lsp_request::PrepareRenameRequest>(handlers::handle_prepare_rename)
10621061
.on::<NO_RETRY, lsp_request::Rename>(handlers::handle_rename)
10631062
.on::<NO_RETRY, lsp_request::References>(handlers::handle_references)

0 commit comments

Comments
 (0)