Printable idea sheet
import_code_completion_ranking
reqlan rq/extension/language/support/features-imports.rq:194
Katz 0.053
Rank import path completions by directory proximity ( hop count from the completing file's directory to the candidate's directory ), then directories before files, then path alphabetically.
Example: typing `../` ranks `../close.rq` before `../../../path.rq`.
Emit sortText for that order, and set filterText so the editor does not re-rank by label fuzzy score over proximity.
- implementation
- reqlan-path-completion.ts, reqlan-completion-provider.ts
- tests
- completion.test.ts
Interactive page: import_code_completion_ranking