SimpleDiagnostic

data class SimpleDiagnostic(val range: IntRange, val message: String, val severity: DiagnosticSeverity)

A simple diagnostic that can be sent to the client.

Parameters

range

the range of the diagnostic in the source text

message

the message of the diagnostic

severity

the severity of the diagnostic

Constructors

Link copied to clipboard
constructor(range: IntRange, cause: DiagnosticCause)
constructor(range: IntRange, message: String, severity: DiagnosticSeverity)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val severity: DiagnosticSeverity

Functions

Link copied to clipboard
fun SimpleDiagnostic.toLspDiagnostic(text: String): Diagnostic

Converts a SimpleDiagnostic to a Diagnostic suitable for the LSP to send to the client.