Skip to content

@jsvision/code-editor / CodeEditorOverlayPresentation

Interface: CodeEditorOverlayPresentation ​

Defined in: code-editor/src/presentation.ts:44

One non-completion terminal overlay sharing the editor's bounded popup.

Example ​

ts
const overlay: CodeEditorOverlayPresentation = {
  kind: 'diagnostic',
  items: ['[error] Unexpected token'],
  selected: 0,
};

Properties ​

diagnostic? ​

readonly optional diagnostic?: object

Defined in: code-editor/src/presentation.ts:52

Locale-neutral diagnostic wrapper retained until the final view projection.

detail ​

readonly detail: string

Sanitized external detail that must never be translated as a template.

severity ​

readonly severity: "error" | "warning" | "information" | "hint"

Stable severity used to select the localized editor-owned label.


items ​

readonly items: readonly string[]

Defined in: code-editor/src/presentation.ts:48

Sanitized bounded rows rendered by the terminal popup.


kind ​

readonly kind: "symbols" | "hover" | "signature" | "diagnostic" | "navigation"

Defined in: code-editor/src/presentation.ts:46

Interaction family represented by the rows.


selected ​

readonly selected: number

Defined in: code-editor/src/presentation.ts:50

Zero-based row selected by chooser-style overlays.