Skip to content

Commit b857a0b

Browse files
author
Max
committed
Include description in label details when detail field is marked for resolution
1 parent 5982d9c commit b857a0b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/rust-analyzer/src/lsp/to_proto.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ fn completion_item(
339339
something_to_resolve = item.detail.is_some();
340340
None
341341
} else {
342-
item.detail
342+
item.detail.clone()
343343
};
344344

345345
let documentation = if fields_to_resolve.resolve_documentation {
@@ -370,7 +370,7 @@ fn completion_item(
370370
} else {
371371
lsp_item.label_details = Some(lsp_types::CompletionItemLabelDetails {
372372
detail: item.label_detail.as_ref().map(ToString::to_string),
373-
description: lsp_item.detail.clone(),
373+
description: item.detail,
374374
});
375375
}
376376
} else if let Some(label_detail) = item.label_detail {

0 commit comments

Comments
 (0)