Referenced by2
Labels1

Referencing ideas

IdeaStatusTagsSummaryKatz
session_barrelThe language server session of [language_server_rust] is a barrel module. `crates/reqlan-lsp/src/session.rs` declares the session modules and re-exports their surface. It holds no feature logic. Each concern is one module under `crates/reqlan-lsp/src/session/`: - `records`: the `Session` struct and its record types: open buffers, comment documents, neighbor parses, and base indexes. - `state`: construction, settings, workspace and base registration, and document open, change, and close. - `diagnostics`: hot, full, and confirm-pass diagnostics. - `neighbors`: the bounded parse cache of closed `.rq` files and file-declaration queries. - `comments`: comment-reference resolution: links, definitions, and diagnostics for `rq:` comments. - `completion`: attribute, import path, qualified file, and reference completion. - `references`: find references across buffers, comments, and the ideas index. - `rename`: rename across buffers, comments, and index-tracked files. - `actions`: code actions with quick fixes ranked against workspace symbols. - `symbols`: workspace symbol search. - `inbound`: host-pushed inbound references: the file CodeLens and reference inlay hints. - `index`: base ideas-index queries shared by rename, references, completion, and code actions. - `features`: open-buffer feature dispatch: tokens, links, definition, hover, highlights, selection, symbols, folds, and site payloads. - `support`: small helpers shared by the session modules. The barrel is the only surface: other modules import from `crate::session`, not from the session modules. Session record fields and cross-module helpers are `pub(super)`: they stay invisible outside the session module tree. Each session module carries `rq:[...]` backlinks to the ideas it implements; the barrel header carries the links for the whole concern. Related: [language_server_rust], [analysis_barrel], ["./open-file-sequencing.rq".open_file_algorithm], ["./open-file-sequencing.rq".open_file_hot_path].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

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