Referenced by3
Labels1

Referencing ideas

IdeaStatusTagsSummaryKatz
analysis_barrelThe open-buffer analysis of [language_server_rust] is a barrel module. `crates/reqlan-lsp/src/analysis.rs` declares the feature modules and re-exports their surface. It holds no feature logic. Each language feature is one module under `crates/reqlan-lsp/src/analysis/`: - `model`: the parsed open document, its parse inputs, and its name, reference, and token stores. - `text`: span and text primitives shared by all features. - `refs`: the walk over parsed references. - `tokens`: semantic token collection and encoding. - `paths`: authored path location and neighbor file queries. - `diagnostics`: parse, reference, and import errors. - `links`: document links. - `definition`: go-to-definition targets. - `hover`: hover hits. - `references`: highlights, find-references, and rename edits. - `completion`: attribute key and value completion. - `inlays`: inbound referencer hints. - `selection`: expand selection over the parse tree. - `sites`: file, wildcard, and search site payloads for host commands. The barrel is the only surface: other modules import from `crate::analysis`, not from the feature modules. Feature modules share no state beyond the document model. Each feature module carries `rq:[...]` backlinks to the ideas it implements; the barrel header carries the links for the whole concern. Related: [language_server_rust], ["./open-file-sequencing.rq".open_file_algorithm].0.041
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_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

"../../../../crates/reqlan-lsp/src/analysis/completion.rs"