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.
- Decoration
Layer Id - A source/layer identifier for decorations.
- Decoration
Range - A half-open character-offset range (
start..end) in the document.
Enums§
- Decoration
Kind - A coarse decoration kind tag.
- Decoration
Placement - Where to render a decoration relative to its anchor range.