pub fn register_multibuffer_modes(
registry: &mut ModeRegistry,
events: &Arc<EventBus>,
multibuffer_registry: MultibufferRegistryHandle,
)Expand description
Boot wiring entry point. Called once from lattice-host’s
editor_boot::boot after the ServiceRegistry is populated
with MultibufferRegistryHandle and the EventBus exists.
- Registers
MultibufferModeagainstregistry(soModeRegistry::find_major_for_kind(BufferKind::Multibuffer)returns its id post-H.2). - Subscribes a
DocumentClosedcleanup task that removes a closed multibuffer’s entry frommultibuffer_registry. Uses the existingSubscriptionTarget::Channelshape +tokio::spawnfor the drain loop (same pattern as the LSP / mode-lifecycle drains).