Idea detail
native_cache_retention
reqlan rq/extension/language/support/open-file-sequencing.rq:327
block
done
Summary
The language server keeps the open-buffer model for each open editor.
It keeps a depth-1 name list for each imported file, and for each qualified-reference file
the background pass has confirmed, while an open editor still needs that list.
A closed editor drops its model. It also drops name lists that no open editor still needs.
A file-watcher delete drops that URI from both caches.
A check of a closed file may parse it once. That result is not stored.
Related: open_file_hot_path, outbound_one_hop, ast_lifecycle.
Navigation
Attributes
| Key | Value |
|---|---|
| implementation | session.rs, reqlan-editor-retention.ts, reqlan-neighbor-parse.ts, reqlan-document-update-handler.ts |
| status | done |
| tests | session.rs:open_file_diagnostics_and_close_drops_the_parse, lsp-memory.test.ts:drops a neighbor list when the last open editor closes, lsp-memory.test.ts:drops a neighbor list when the file watcher reports a delete, outbound-hop.test.ts:reuses a cached neighbor parse for the same content |
Ancestor context
No ancestor chain recorded.
Outbound references
Inbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | open_file_hot_path | reqlan rq/extension/language/support/open-file-sequencing.rq | native_cache_retention |
| references | scope_cache_release | reqlan rq/extension/language/support/open-file-sequencing.rq | native_cache_retention |
Unresolved references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Local graph
Initialising graph…