Skip to content

DIAGNOSTIC_STYLES

const DIAGNOSTIC_STYLES: Record<LanguageServerDiagnosticSeverity, VirtualizedTextHighlightStyle>

Per-severity highlight styles applied by the Language Server plugin to the ranges produced by diagnosticHighlightGroups. Errors get a translucent background plus a wavy underline so they are unmistakable even on noisy syntax colouring; warnings / information / hints get progressively subtler washes with no underline, following the severity ordering the styling is meant to convey.