Diagnostic
Object Hierarchy:
Description:
[ Compact ( opaque = true ) ]
[ CCode ( ref_function = "lsp_diagnostic_ref" , unref_function = "lsp_diagnostic_unref" ) ]
public class Diagnostic
Represents a diagnostic, such as a compiler error or warning.
Diagnostic objects are only valid in the scope of a resource.
Content:
Properties:
- public string? code { get; set; }
The diagnostic's code, which might appear in the user interface.
- public CodeDescription? code_description { get; owned set; }
An optional property to describe the error code.
- public Variant? data { get; set; }
A data entry field that is preserved between a
`textDocument/publishDiagnostics` notification and `textDocument/codeAction` request.
- public string message { get; set; }
The diagnostic's message.
- public Range range { get; set; }
The range at which the message applies.
- public DiagnosticRelatedInformation[]? related_information { get; set; }
- public DiagnosticSeverity severity { get; set; }
The diagnostic's severity. Can be omitted. If omitted it is up to the
client to interpret diagnostics as error, warning, info or hint.
- public string? source { get; set; }
A human-readable string describing the source of this diagnostic, e.g.
'vala' or 'vala lint'.
- public DiagnosticTagFlags tags { get; set; }
Additional metadata about the diagnostic.
Creation methods:
Methods: