Skip to main content

Module diagnostics

Module diagnostics 

Source
Expand description

First-class diagnostics data model.

This module stores structured diagnostics (errors/warnings/hints) as derived editor state. Renderers can use this for:

  • problems panels / gutter markers
  • hover tooltips / inline messages
  • mapping diagnostics back to style layers (underlines)

Structs§

Diagnostic
A single diagnostic item for the current document.
DiagnosticRange
A half-open character-offset range (start..end) in the document.

Enums§

DiagnosticSeverity
Diagnostic severity levels.