class LSP::Diagnostic
- LSP::Diagnostic
- Reference
- 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
Included Modules
Defined in:
base/diagnostic.crConstructors
- .new(line : Int32 | Nil, column : Int32 | Nil, size : Int32 | Nil, message : String, source : Nil | String, related_information : Nil | Array(LSP::DiagnosticRelatedInformation) = nil)
- .new(pull : JSON::PullParser)
- .new(**args)
Instance Method Summary
-
#code : Int32 | String | Nil
The diagnostic's code, which might appear in the user interface.
-
#code=(code : Int32 | String | Nil)
The diagnostic's code, which might appear in the user interface.
-
#message : String
The diagnostic's message.
-
#message=(message : String)
The diagnostic's message.
-
#range : Range
The range at which the message applies.
-
#range=(range : Range)
The range at which the message applies.
- #related_information : Array(DiagnosticRelatedInformation) | Nil
- #related_information=(related_information : Array(DiagnosticRelatedInformation) | Nil)
-
#severity : Int32 | Nil
The diagnostic's severity.
-
#severity=(severity : Int32 | Nil)
The diagnostic's severity.
-
#source : String | Nil
A human-readable string describing the source of this diagnostic, e.g.
-
#source=(source : String | Nil)
A human-readable string describing the source of this diagnostic, e.g.
-
#tags : Array(DiagnosticTag) | Nil
Additional metadata about the diagnostic.
-
#tags=(tags : Array(DiagnosticTag) | Nil)
Additional metadata about the diagnostic.
Constructor Detail
Instance Method Detail
The diagnostic's code, which might appear in the user interface.
The diagnostic's severity. Can be omitted. If omitted it is up to the client to interpret diagnostics as error, warning, info or hint.
The diagnostic's severity. Can be omitted. If omitted it is up to the client to interpret diagnostics as error, warning, info or hint.
A human-readable string describing the source of this diagnostic, e.g. 'typescript' or 'super lint'.
A human-readable string describing the source of this diagnostic, e.g. 'typescript' or 'super lint'.