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:
faumaray committed 2026-12-06 01:58:08 +03:00
1 parent 0b33a0cd99
commit 236c3c5718
5 files changed
+29 -16

No files matched your search

+1 -1
View File
@@ -66,7 +66,7 @@ VOID_TEST(Completion, ranks_types_before_functions_before_variables) {
expect(result.items[0].kind == Kind::type);
expect(result.items[1].kind == Kind::function);
expect(result.items[2].kind == Kind::variable);
expect(result.items[0].sort_text == "0zz");
expect(result.items[0].sort_text == "01zz");
}
VOID_TEST(Completion, empty_prefix_lists_everything_bounded) {