Skip to main content

Module presentation

Module presentation 

Source
Expand description

Framework-neutral, random-access unified and split row presentation.

Structs§

CellSource
ContentProjection
Reveal state used to project a document over the sources it carries.
DiffPresentation
Eager row indexes and cheap descriptors. Syntax and frontend widgets are not constructed here.
GapExpansion
User-controlled revealed ranges at both hunk-adjacent edges of a gap.
GapId
Stable identity of a gap before, between, or after hunks.
GapInfo
Adapter-facing state for an expansion affordance.
GapInterval
One-based half-open source intervals for both sides of a gap.
HunkSequence
Renderer-neutral description of the hunk-side line sequence containing a patch cell, used to keep multiline syntax context for patch-only files.
PresentationOptions
Options used while indexing presentation rows.
PresentedCell
One side of a presented row.
PresentedRow
One cheap renderer-neutral row descriptor.
RowId
Stable identity for a presented row.

Enums§

DiffTone
Semantic tint for a diff cell.
Layout
RowKind
Semantic row type.
ViewMode
Requested diff layout.

Constants§

MAX_HUNK_SEQUENCE_LINES
Largest hunk (in total patch lines) served as a fallback syntax sequence. Larger hunks degrade to per-line highlighting so patch-only rendering work stays bounded by the viewport rather than the document.

Functions§

gaps_for_file
Computes leading, between-hunk, and trailing one-based source intervals.