LSProtocol::Diagnostic
Inherits JSON::Serializable / Reference / Object
Represents a diagnostic, such as a compiler error or warning. Diagnostic objects are only valid in the scope of a resource.
Constructors
new(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
code_description
An optional property to describe the error code. Requires the code field (above) to be present/not null.
@since 3.16.0
data
A data entry field that is preserved between a textDocument/publishDiagnostics
notification and textDocument/codeAction request.
@since 3.16.0
severity
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.
source
A human-readable string describing the source of this diagnostic, e.g. 'typescript' or 'super lint'. It usually appears in the user interface.