Skip to main content

Module version

Module version 

Source
Expand description

Version vector for the cell matrix.

Each axis tracks one source of cell-content invalidation. The cell-builder worker (S2, lives in lattice-host) compares the chunk’s captured MatrixVersion against RenderState’s current version via MatrixVersion::differs_from; any field that changed → that chunk is stale and needs rebuild.

§Semantics: monotonic + hash-style fields coexist

Some axes are monotonically-increasing counters (text is document.text_version(), bumped on every rope edit). Others are content hashes (inlay_hints, folds) — they don’t compare with </>, only with ==/!=. The version vector treats every axis identically: “differs” is the only check that matters for the rebuild decision, and differs_from is correct for both kinds.

See docs/dev/architecture/cell-grid-renderer.md § Invalidation for the complete trigger table.

Structs§

MatrixVersion
Per-source version stamps that drive matrix rebuild decisions.