Skip to main content

Module decoration_host

Module decoration_host 

Source
Expand description

The decoration-provider guest world (PH7.9b).

A WASM decoration provider implements the decorations-plugin world: it exports the decorations producer (gutter-decorations) and imports the host-services walk seam (PH7.4b). This module holds the sixth bindgen! (after plugin, picker-source-plugin, completion-source-plugin, grammar-plugin, events-plugin) for that world — the shared-types trick (with: points types + host-services at the plugin world’s generated modules so a crossed gutter-decoration value is the SAME Rust type WitBoundary round-trips, boundary_decoration.rs; PH7.3d precedent).

Producer, async (the completion PH7.6 fork). The native Mode::gutter_decorations is read per-frame by the renderer; a WASM mode can’t satisfy it inline (per-frame WASM = a paramount-#1 violation). So the guest is an async producer the host calls OFF the render path on a trigger, caching the result; exports: { default: async } — a produce call suspends the guest, never the render path. The per-plugin actor that drives it is the decoration_task bridge.