Skip to main content

Module context_source

Module context_source 

Source
Expand description

TC.2 — the WasmContextSource adapter (the async-produce path).

Wraps a context plugin’s ContextClient bridge and exposes the native AsyncContextSource the host’s registry holds — the same trait-object indirection the completion / picker / decoration seams use, so lattice-host and the renderers never name this crate.

The host drives this when a reparse completes, stamps the result with the parse version, and caches it. Nothing on the keystroke path calls it: the per-pane resolution that runs at cursor rate reads the cache (lattice_cells::context::resolve_context), never a producer.

Structs§

WasmContextSource
An async context-scope producer over a plugin’s ContextClient. Cheap to clone (the client is an mpsc Sender clone); every clone talks to the same actor / Store.