lsp.Diagnostic
Represents a diagnostic, such as a compiler error or warning. Diagnostic objects are only valid in the scope of a resource.
@since 3.16.0 @since 3.18.0 - support for MarkupContent. This is guarded by the client capability textDocument.diagnostic.markupMessageSupport. @since 3.15.0 @since 3.16.0
Fields9
Diagnostic.range : lsp.Range
The range at which the message applies
Diagnostic.severity : lsp.DiagnosticSeverity | nil
The diagnostic's severity. To avoid interpretation mismatches when a server is used with different clients it is highly recommended that servers always provide a severity value.
Diagnostic.code : nil | string | integer
The diagnostic's code, which usually appear in the user interface.
Diagnostic.codeDescription : lsp.CodeDescription | nil
Diagnostic.source : nil | string
A human-readable string describing the source of this diagnostic, e.g. 'typescript' or 'super lint'. It usually appears in the user interface.
Diagnostic.message : string | lsp.MarkupContent
Diagnostic.tags : lsp.DiagnosticTag[] | nil
Diagnostic.data : lsp.LSPAny | nil