From e89d72056b6a71cd9e26c832942b8a6acc8891dc Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Wed, 18 Dec 2024 15:00:09 +0100 Subject: [PATCH] fix: Consider both completion detail fields in to_proto --- crates/rust-analyzer/src/lsp/to_proto.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/rust-analyzer/src/lsp/to_proto.rs b/crates/rust-analyzer/src/lsp/to_proto.rs index 06d02b63f2..38bb30c978 100644 --- a/crates/rust-analyzer/src/lsp/to_proto.rs +++ b/crates/rust-analyzer/src/lsp/to_proto.rs @@ -373,7 +373,7 @@ fn completion_item( if config.completion_label_details_support() { let has_label_details = - item.label.detail_left.is_some() || item.label.detail_left.is_some(); + item.label.detail_left.is_some() || item.label.detail_right.is_some(); if fields_to_resolve.resolve_label_details { something_to_resolve |= has_label_details; } else if has_label_details {