Referenced by3
Labels3

Referencing ideas

IdeaStatusTagsSummaryKatz
attribute_code_completion_attribute_keythe attribute key should complete based on endorsed keys and what is present in the index i. e. after the @ symbol at the start of a line, the used attributes should be completed. subsquently, values of the attribute key should be completed based on the values in that attribute key. Values complete for both grammar forms, `@key value` and `@key: value` ( ["../../../../packages/language/src/reqlan.langium"] ). A key already used in the document is filtered out of key completion. Implemented by ["../../../../crates/reqlan-lsp/src/analysis/completion.rs"] and ["../../../../packages/language/src/reqlan-completion-provider.ts"], with site detection in ["../../../../packages/language/src/reqlan-completion-context.ts"]. ["./features-syntax.rq".code_completion]0.046
code_completion_reentry_is_losslessRe-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 ["../../../../crates/reqlan-lsp/src/path_completion.rs"] and ["../../../../packages/language/src/reqlan-path-completion.ts"], with the provider in ["../../../../packages/language/src/reqlan-completion-provider.ts"]. [code_completion_replaces_the_tail] ["../support/features-imports.rq".import_code_completion_ranking]0.036
code_completion_replaces_the_tailCompletion 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 ["../../../../crates/reqlan-lsp/src/path_completion.rs"], ["../../../../crates/reqlan-lsp/src/session/completion.rs"], ["../../../../crates/reqlan-lsp/src/analysis/completion.rs"], ["../../../../packages/language/src/reqlan-completion-context.ts"], and ["../../../../packages/language/src/reqlan-completion-provider.ts"]. ["./features-syntax.rq".code_completion] [reference_code_completion_objects] [attribute_code_completion_attribute_key]0.041

Reference labels

attribute_code_completion_attribute_key, code_completion_reentry_is_lossless, code_completion_replaces_the_tail