Idea detail
open_file_hot_path
reqlan rq/extension/language/support/open-file-sequencing.rq:199
Summary
Open-file work stays on the one parse of this buffer plus one parse per imported file.
Reuse that model for document links, go-to-definition, hover, and diagnostics until the text
or the import-root mapping changes.
Keep that model, and the import name lists, only for open editors ( native_cache_retention ).
Look up an open import by URI. Do not match on file basename.
Do not read SQLite. Do not call `list_all_ideas`.
At parse time, publish lex and parse diagnostics with same-file and import errors.
The editor must not wait for a workspace link phase to see a broken parse.
Handlers on this path read the open model. They do not build a workspace link graph.
Related: open_file_algorithm, outbound_one_hop, ast_lifecycle,
comment_backlink_sequence.
Navigation
Attributes
| Key | Value |
|---|---|
| implementation | session.rs, analysis.rs, server.rs |
| status | in-progress |
| tests | open-file-hot-path.test.ts:reuses the host native extract for links and diagnostics, open-file-hot-path.test.ts:reparses the host native extract when this buffer text changes, open-file-hot-path.test.ts:does not treat a same-name file as the loaded neighbor, parity.rs:same_file_idea_references_produce_document_links |
| todo | Unqualified comment lookup can still fall back to the name catalog when no open buffer matches. |
Ancestor context
No ancestor chain recorded.
Outbound references
Inbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | open_file_algorithm | reqlan rq/extension/language/support/open-file-sequencing.rq | open_file_hot_path |
| references | outbound_one_hop | reqlan rq/extension/language/support/open-file-sequencing.rq | open_file_hot_path |
| references | native_cache_retention | reqlan rq/extension/language/support/open-file-sequencing.rq | open_file_hot_path |
| references | scope_cache_release | reqlan rq/extension/language/support/open-file-sequencing.rq | open_file_hot_path |
| references | local_symbolic_analysis | reqlan rq/indexer/indexer.rq | open_file_hot_path |
Unresolved references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Local graph
Initialising graph…