struct LSP::Protocol::Diagnostic
- LSP::Protocol::Diagnostic
- Struct
- Value
- Object
Overview
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
Defined in:
lsp/protocol/diagnostic.crConstructors
- .new(file : String, line : Int32 | Nil, column : Int32 | Nil, size : Int32 | Nil, message : String, source : String)
- .new(__temp_102 : JSON::PullParser)
Instance Method Summary
- #message : String
- #message=(_message : String)
- #range : Range
- #range=(_range : Range)
- #severity : Int32
- #severity=(_severity : Int32)
- #source : String
- #source=(_source : String)
- #to_json(json : JSON::Builder)
-
#uri
#uri
and@filename
aren't part of Diagnostic interface of LSP, however They're useful to group failures by file.
Constructor Detail
def self.new(file : String, line : Int32 | Nil, column : Int32 | Nil, size : Int32 | Nil, message : String, source : String)
#