Skip to main content

Module decorations

Module decorations 

Source
Expand description

First-class decorations (virtual text) data model.

Decorations represent UI-facing annotations anchored to document character offsets, without modifying the document text. Common examples:

  • LSP inlay hints (inline type hints)
  • code lens (line-level virtual text)
  • document links
  • match highlights / bracket highlights (when not represented as pure style intervals)

Decorations are derived editor state. They typically originate from integrations via ProcessingEdit and are rendered by the host.

Structs§

Decoration
A single decoration item.
DecorationLayerId
A source/layer identifier for decorations.
DecorationRange
A half-open character-offset range (start..end) in the document.

Enums§

DecorationKind
A coarse decoration kind tag.
DecorationPlacement
Where to render a decoration relative to its anchor range.