MCPcopy Create free account
hub / github.com/clice-io/clice / code_complete

Function code_complete

src/feature/code_completion.cpp:513–526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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) {

Callers 1

handle_completionFunction · 0.50

Calls 1

completeFunction · 0.85

Tested by

no test coverage detected