Skip to content

lsp / org.pinelang.lsp.lsp.models / LSPDiagnostic

LSPDiagnostic

data class LSPDiagnostic

Constructors

Name Summary
<init> LSPDiagnostic(range:Range, code:Int, message:String, severity:Int? = null, source:String? = null, relatedInformation:List<DiagnosticRelatedInformation>? = null)

Properties

Name Summary
code The diagnostic’s code, which might appear in the user interface.val code:Int
message The diagnostic’s message.val message:String
range The range at which the message applies.val range:Range
relatedInformation An array of related diagnostic information, e.g. when symbol-names within a scope collide all definitions can be marked via this property.val relatedInformation:List<DiagnosticRelatedInformation>?
severity The diagnostic’s severity. Can be omitted. If omitted it is up to the client to interpret diagnostics as error, warning, info or hint.val severity:Int?
source A human-readable string describing the source of this diagnostic, e.g. ‘typescript’ or ‘super lint’.val source:String?