Referenced by6
Labels6

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
completion_site_identifier_charsetCompletion site detection must accept the full grammar identifier charset in every typed prefix: attribute keys, bare references, wikilinks, and qualified-file idea prefixes. The charset is the parser `ID` terminal, `[_a-zA-Z][\w-]*`, which includes the hyphen: ["../../../../packages/language/src/reqlan.langium"]. Site regexes must not encode a narrower charset than the parser `ID` terminal. Implemented by ["../../../../crates/reqlan-lsp/src/path_completion.rs"] and ["../../../../packages/language/src/reqlan-completion-context.ts"]. [reference_code_completion_objects] [attribute_code_completion_attribute_key]0.036
reference_code_completion_objectsdone[reference_code_completion] must offer code completion for all valid reqlan references: - reqlan files ( `.rq` ) - ideas and ideasets in a reqlan file after a quoted path ( `["path".idea]` ) - ideasets and ideaset members ( `[ideaset.member]` ) - code files - folders, including folders that do not contain `.rq` files Import path completion stays limited to `.rq` files. Anonymous file-reference paths share ranking and alias logic with import paths, but they include every file and folder target. Bare dotted references ( `[ideaset.member]`, `[alias.member]` ) complete members in both engines. Members come from open documents and, for closed files, from the ideas index membership edges ( `ideaset_member` ) in the Rust server. The Node engine has no index access, so its bare `set.member` completion stays limited to open documents; `alias.member` reaches closed files in the Rust server through on-demand parse. Reference completion must not fire inside markdown link labels or main-description prose. Scanning every workspace file on each keystroke is too expensive: [reference_code_completion_performance].0.056
reference_code_completion_performancedone[reference_code_completion_objects] must stay interactive on large workspaces. Path completion must not re-walk the filesystem on every keystroke: cache directory listings and reuse them for import and anonymous file-reference completion. Ranking must precompute proximity keys rather than recomputing hop distance per comparator call. The Rust server keeps that ranked list for the listing TTL. A later keystroke filters the list. It does not rebuild relative paths or hop keys. Idea-graph ranking must reuse per-document adjacency across completion requests while document versions are unchanged. Anonymous file-reference completion may omit distant candidates after proximity ranking so the list stays bounded. Implemented by ["../../../../crates/reqlan-lsp/src/path_completion.rs"] ( `PathCompletionCache`, listing cache ), ["../../../../packages/language/src/reqlan-path-completion.ts"] ( `clearPathCompletionCaches`, listing cache, `sortPathCompletionCandidates` ), ["../../../../packages/language/src/reqlan-completion-provider.ts"], and ["../../../../packages/language/src/reqlan-completion-context.ts"]. [reference_code_completion] [reference_code_completion_objects]0.043

Reference labels

attribute_code_completion_attribute_key, code_completion_reentry_is_lossless, code_completion_replaces_the_tail, completion_site_identifier_charset, reference_code_completion_objects, reference_code_completion_performance