reqlanOverviewIdeasFilesCode filesClustersAttributesGraphPrint

Printable idea sheet

open_file_hot_path

reqlan rq/extension/language/support/open-file-sequencing.rq:199

Katz 0.186

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.

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.

Interactive page: open_file_hot_path