LSP::Protocol::Diagnostic
Inherits Struct / Value / Object
Represents a diagnostic, such as a compiler error or warning. Diagnostic objects are only valid in the scope of a resource. See: https://github.com/Microsoft/language-server-protocol/blob/master/protocol.md#diagnostic
Constructors
new(file : String, line : Int32 | Nil, column : Int32 | Nil, size : Int32 | Nil, message : String, source : String)
Sourcenew(__temp_135 : JSON::PullParser)
SourceInstance methods
message
Sourcemessage=(_message : String)
Sourcerange
Sourcerange=(_range : Range)
Sourceseverity
Sourceseverity=(_severity : Int32)
Sourcesource
Sourcesource=(_source : String)
Sourceto_json(json : JSON::Builder)
Sourceuri
uri and @filename aren't part of Diagnostic interface of LSP,
however They're useful to group failures by file.