Skip to content

Commit

Permalink
Include description in label details when detail field is marked for …
Browse files Browse the repository at this point in the history
…resolution
  • Loading branch information
Max committed Oct 5, 2024
1 parent fe2b453 commit 429d46d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ fn completion_item(
something_to_resolve = item.detail.is_some();
None
} else {
item.detail
item.detail.clone()
};

let documentation = if fields_to_resolve.resolve_documentation {
Expand Down Expand Up @@ -370,7 +370,7 @@ fn completion_item(
} else {
lsp_item.label_details = Some(lsp_types::CompletionItemLabelDetails {
detail: item.label_detail.as_ref().map(ToString::to_string),
description: lsp_item.detail.clone(),
description: item.detail,
});
}
} else if let Some(label_detail) = item.label_detail {
Expand Down

0 comments on commit 429d46d

Please sign in to comment.