Expand description
Database + AnalysisHost split (rust-analyzer pattern).
AnalysisHost owns the mutable salsa database; LSP write paths
(did_open, did_change, workspace scan) go through the host.
Read-only handlers snapshot the db (cheap Arc<Zalsa> clone) and run
queries lock-free.
After the mir 0.22 migration, this module no longer owns the workspace
MirDb — that’s the responsibility of mir_analyzer::AnalysisSession
held by DocumentStore. Salsa is for parsed_doc / file_index / method_returns
only.
Structs§
- Analysis
Host - Owns the mutable salsa database. Backend will hold one of these.
- Root
Database