LSP::Data::Diagnostic
Inherits JSON::Serializable < Struct < Value < Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
code=(code : Int64 | String | Nil)
The diagnostic's code, which might appear in the user interface.
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.
severity=(severity : Severity | Nil)
The diagnostic's severity. Can be omitted. If omitted it is up to the client to interpret diagnostics as error, warning, info or hint.
source
A human-readable string describing the source of this diagnostic, e.g. 'typescript' or 'super lint'.
source=(source : String | Nil)
A human-readable string describing the source of this diagnostic, e.g. 'typescript' or 'super lint'.