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?, column : Int32?, size : Int32?, message : String, source : String?, related_information : 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)?
- #related_information=(related_information : Array(DiagnosticRelatedInformation)?)
-
#severity : Int32?
The diagnostic's severity.
-
#severity=(severity : Int32?)
The diagnostic's severity.
-
#source : String?
A human-readable string describing the source of this diagnostic, e.g.
-
#source=(source : String?)
A human-readable string describing the source of this diagnostic, e.g.
-
#tags : Array(DiagnosticTag)?
Additional metadata about the diagnostic.
-
#tags=(tags : Array(DiagnosticTag)?)
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'.