Idea detail
import_code_completion_match_quality
reqlan rq/extension/language/support/features-imports.rq:285
block
Summary
Rank path candidates by match quality before import_code_completion_ranking proximity: an exact substring match outranks a separator-stripped substring match, which outranks an ordered character subsequence match.
Within the subsequence tier, a match where every `/` - separated query chunk appears inside a path segment outranks a loose character subsequence.
This keeps precise matches above coincidental subsequence matches, so the bounded result list keeps the intended target.
import_code_completion_substring_match
import_code_completion_match_quality
Navigation
Attributes
| Key | Value |
|---|---|
| implementation | path_completion.rs, reqlan-path-completion.ts |
| tests | completion.rs:ranks_exact_substring_matches_above_subsequence_matches, completion.rs:ranks_segment_matches_above_subsequence_matches, completion.test.ts:ranks exact substring matches above subsequence matches, completion.test.ts:ranks segment matches above subsequence matches |
Ancestor context
No ancestor chain recorded.
Outbound references
Inbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | import_code_completion | reqlan rq/extension/language/support/features-imports.rq | import_code_completion_match_quality |
| references | import_code_completion_prefix_aware_ranking | reqlan rq/extension/language/support/features-imports.rq | import_code_completion_match_quality |
| references | import_code_completion_ranking | reqlan rq/extension/language/support/features-imports.rq | import_code_completion_match_quality |
Unresolved references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Local graph
Initialising graph…