reqlanOverviewIdeasFilesCode filesClustersFoldersAttributesGraphPrint

Printable idea sheet

code_completion_reentry_is_lossless

reqlan rq/extension/language/syntax/features-syntax-highlighting.rq:498

Katz 0.036

Re-entering a finished path and completing again must keep or deliberately replace the content, never mutate it unpredictably.
The candidate equal to the current content ranks first.
Candidates whose remainder continues the text after the cursor rank above other candidates of the same match tier.
Implemented by path_completion.rs and reqlan-path-completion.ts, with the provider in reqlan-completion-provider.ts.
code_completion_replaces_the_tail
import_code_completion_ranking

tests
completion.rs:ranks_the_current_value_first_when_reentering_a_path, completion.test.ts:ranks the current value first when reentering a path

Interactive page: code_completion_reentry_is_lossless