Skip to content

Commit

Permalink
feat: Support for description completionItem
Browse files Browse the repository at this point in the history
  • Loading branch information
Enaium authored and angelozerr committed Jan 10, 2025
1 parent 511c2f4 commit 1de8471
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ public String getItemText(@NotNull CompletionItem item) {
*/
@Nullable
public String getTypeText(CompletionItem item) {
return item.getDetail();
var labelDetails = item.getLabelDetails();
return labelDetails != null ? labelDetails.getDescription() : item.getDetail();
}

/**
Expand Down

0 comments on commit 1de8471

Please sign in to comment.