| 511 | item.sort_text = std::format("{}", *score); |
| 512 | if(!signature.empty() || !return_type.empty()) { |
| 513 | protocol::CompletionItemLabelDetails details; |
| 514 | if(!signature.empty()) { |
| 515 | details.detail = signature.str(); |
| 516 | } |
| 517 | if(!return_type.empty()) { |
| 518 | details.description = return_type.str(); |
| 519 | } |
| 520 | item.label_details = std::move(details); |
| 521 | } |
| 522 | if(is_deprecated) { |
| 523 | item.tags = std::vector{protocol::CompletionItemTag::Deprecated}; |
| 524 | } |
| 525 | collected.push_back({.item = std::move(item), .dedup_priority = priority}); |
| 526 | }; |
| 527 | |
| 528 | for(auto& candidate: llvm::make_range(candidates, candidates + candidate_count)) { |
| 529 | switch(candidate.Kind) { |
no test coverage detected