reqlanOverviewIdeasFilesCode filesClustersFoldersAttributesGraphPrint

Printable idea sheet

session_barrel

reqlan rq/extension/language/support/language-server-rust.rq:197

Katz 0.036

The 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_algorithm, open_file_hot_path.

implementation
session.rs, records.rs, state.rs, diagnostics.rs, neighbors.rs, comments.rs, completion.rs, references.rs, rename.rs, actions.rs, symbols.rs, inbound.rs, index.rs, features.rs, support.rs
tests
session.rs:open_file_diagnostics_and_close_drops_the_parse, session.rs:semantic_token_range_matches_the_source_name, session.rs:definition_uses_the_open_neighbor_parse, session.rs:neighbor_confirm_suppresses_missing_idea, session.rs:completion_rename_and_code_action, session.rs:index_completion_inlay_and_custom_requests

Interactive page: session_barrel