toLspDiagnostic
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
Converts a SimpleDiagnostic to a Diagnostic suitable for the LSP to send to the client.
the LSP diagnostic
the text of the document