Code reference detail
inlays.rs
crates/reqlan-lsp/src/analysis/inlays.rs
| Idea | Status | Tags | Summary | Katz |
|---|---|---|---|---|
| analysis_barrel | The 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 | ||
| traceable_inlay_hints | done | A click on one inbound referencer opens that idea via `reqlan.openInboundReferencer` → host openIndexFile ( same path as activity-bar / index opens ). The inlay label part must not use raw LSP Location for the click gesture — Cursor rejects detached file: / / opens that Location would trigger. A click on the remainder opens the inbound summary for that idea. The backlink tooltip uses the shared document-link file URI builder ( encoded path, `#L` fragment ). The Rust server emits the same markdown tooltip and open command ( ["../support/language-server-rust.rq".language_server_rust] ). A file path with a space opens that file from the inlay click and from the tooltip. A directory segment " reqlan rq " opens that file. Implemented by ["../../../../packages/language/src/reqlan-inbound-reference-inlay-label.ts"], ["../../../../packages/language/src/reqlan-inlay-hint-provider.ts"], ["../../../../packages/language/src/reqlan-inlay-hint-settings.ts"], ["../../../../packages/extension/src/extension/register-reference-inlay-hints.ts"], ["../../../../packages/language/src/reqlan-file-link-resolver.ts"], ["../../../../packages/language/src/reqlan-path-resolve.ts"], and ["../../../../crates/reqlan-lsp/src/analysis/inlays.rs"]. | 0.047 |
Reference labels
"../../../../crates/reqlan-lsp/src/analysis/inlays.rs"