Idea detail
code_completion_replaces_the_tail
reqlan rq/extension/language/syntax/features-syntax-highlighting.rq:471
Summary
Completion inside an unfinished string or reference name replaces the whole token up to its closing character.
Text after the cursor that continues the inserted value is kept, not duplicated; any other tail is consumed.
A picked folder keeps a bare file name typed after the cursor: when the inserted value ends with `/` and the tail holds no further `/`, the tail is appended.
Applies to anonymous paths ( `["…` ), bare references ( `[…` / `[[…` ), qualified-file idea names ( `["p.rq".…` ), and attribute keys and values ( `@key`, `@key: value` ), matching the import-path behaviour.
Matching still uses the typed prefix before the cursor only.
Accepting a completion at the end of an unclosed string appends the missing closing delimiter; only when nothing follows the cursor, so in-progress text is never trapped behind a quote.
Implemented by path_completion.rs, completion.rs, completion.rs, reqlan-completion-context.ts, and reqlan-completion-provider.ts.
code_completion
reference_code_completion_objects
attribute_code_completion_attribute_key
Navigation
Attributes
| Key | Value |
|---|---|
| tests | completion.rs:completing_inside_a_string_replaces_the_tail, completion.rs:completing_inside_a_reference_name_replaces_the_tail, completion.rs:completes_attribute_value_replacing_the_tail, completion.rs:completes_attribute_key_replacing_the_tail, completion.rs:appends_the_closing_quote_at_the_end_of_an_unclosed_string, path_completion.rs:merge_tail_carries_a_bare_filename_tail, completion.test.ts:completing inside a string replaces the tail, completion.test.ts:completing inside a reference name replaces the tail, completion.test.ts:completes attribute value replacing the tail, completion.test.ts:completes attribute key replacing the tail, completion.test.ts:appends the closing quote at the end of an unclosed string, completion.test.ts:picking a folder carries a bare filename tail |
Ancestor context
No ancestor chain recorded.
Outbound references
Inbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | code_completion_reentry_is_lossless | reqlan rq/extension/language/syntax/features-syntax-highlighting.rq | code_completion_replaces_the_tail |
Unresolved references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Local graph
Initialising graph…