Rank same-document completion candidates first
Candidates carry a local flag set from the index record path, and the deterministic sort key orders local candidates before remote ones within the same kind. Registered feature tests cover the ranking.
This commit is contained in:
1 parent
0b33a0cd99
commit
236c3c5718
5 files changed
+29
-16
No files matched your search
@@ -35,6 +35,8 @@ struct Candidate {
|
||||
std::string detail;
|
||||
std::string provenance;
|
||||
Identity identity;
|
||||
// The candidate is declared in the requesting document.
|
||||
bool local{};
|
||||
auto operator<=>(const Candidate &) const = default;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user