LavaUI docs GitHub

enum DiagnosticSeverity

Swift

enum DiagnosticSeverity

How urgently an EditorDecoration should read — supplies a default color and gutter glyph so a caller can skip both and just say what kind of thing this is.

Sources/LavaUI/EditorView.swift:50

Cases

case error

Something is wrong: red, with a dot in the gutter.

Sources/LavaUI/EditorView.swift:52

case warning

Something may be wrong: amber, with a triangle.

Sources/LavaUI/EditorView.swift:54

case info

Worth knowing: blue, with a dot.

Sources/LavaUI/EditorView.swift:56

case hint

A suggestion: grey, with a small dot.

Sources/LavaUI/EditorView.swift:58