Skip to main content

Module DecorationTypeLifecycle

Module DecorationTypeLifecycle 

Source
Expand description

Cocoon window.createTextEditorDecorationType / window.disposeTextEditorDecorationType notifications. Forwards the payload on sky://decoration/<suffix> as a batch; Sky demultiplexes back to per-decoration cel:decoration:* CustomEvents.

~337 create + 317 dispose calls per session. Channel-drain pattern: a single long-lived flusher wakes on first item, drains, sleeps one frame (16 ms), drains stragglers, then emits one batched event per channel name. Zero spawns per call.

Structsยง

DecorationChannel ๐Ÿ”’
DecorationItem ๐Ÿ”’

Staticsยง

DECO_CH ๐Ÿ”’

Functionsยง

DecorationTypeLifecycle
GetOrInitChannel ๐Ÿ”’