Expand description
Host-owned BufferRegistry-backed impls of the diff subsystem’s
resolver seams (DX.6, coupling C6).
The diff subsystem (now lattice-diff) depends only on the
abstractions BufferTextProvider / DocumentBufferResolver.
Their production impls bridge to crate::buffer_registry::BufferRegistry
— a host type — so they CANNOT live in lattice-diff; they stay here.
Re-exported under crate::diff::subsystem::* (see diff/mod.rs) so
every existing call site reads
crate::diff::subsystem::BufferRegistry{TextProvider,DocumentResolver}
exactly as before the move.
Structs§
- Buffer
Registry Document Resolver - D.3.a.1 (2026-05-29): production
DocumentBufferResolverimpl. BridgesDocumentId→BufferIdviaBufferRegistry::buffer_id_for_document. Stored onEditorfor the editor’s lifetime and handed toDiffSubsystem::bindso the drainer task can translate bus events. - Buffer
Registry Text Provider - D.3.a (2026-05-29): the production
BufferTextProviderimpl. Bridges the trait to the host’scrate::buffer_registry::BufferRegistry:buffer_rope(id)walksBufferRegistry::document_handle(id) -> RopeDocumentHandle::snapshot() -> snapshot.buffer.to_rope().