Skip to main content

Module pending_inlays

Module pending_inlays 

Source
Expand description

Mode-published inline virtual text (DL.3b).

The inlay peer of crate::pending_synthetic_highlights, and it exists for the same reason: buffer-locals are written host-side, so a mode living in its own crate cannot reach one directly. It pushes here instead, and the Editor drains the map into the buffer’s ExtraInlays local on the next tick.

Deliberately generic. Nothing here knows about listings — a mode that wants leading icons, a plugin that wants trailing annotations, and any future producer of inline virtual text use the same channel. The LSP hint path is unchanged and merges beside these.

store_and_wake fires the waker, so a producer that lands off the actor thread reaches the screen without a keypress — the failure mode feedback_async_needs_wake records, designed out at the seam rather than left to each caller to remember.

Structs§

InlayRow
One piece of inline virtual text: where it anchors, what it says, and how to paint it.
PendingInlays
Shared state between mode-side producers and the Editor’s tick drain. A buffer’s entry is a full replacement — a producer that recomputes a listing publishes the whole set, so a shorter listing leaves nothing of the old behind.

Type Aliases§

PendingInlaysHandle
Shared-handle alias for a producer to keep.