toLspDiagnostic

fun SimpleDiagnostic.toLspDiagnostic(text: String): Diagnostic

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

Return

the LSP diagnostic

Parameters

text

the text of the document