struct

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)
Source
new(__temp_135 : JSON::PullParser)
Source

Instance methods

message
Source
message=(_message : String)
Source
range
Source
range=(_range : Range)
Source
severity
Source
severity=(_severity : Int32)
Source
source
Source
source=(_source : String)
Source
to_json(json : JSON::Builder)
Source
uri

uri and @filename aren't part of Diagnostic interface of LSP, however They're useful to group failures by file.

Source