struct LSP::Diagnostic
- LSP::Diagnostic
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Defined in:
lsp/diagnostic.crConstructors
- .new(range : LSP::Range, message : String, source : Nil | String = nil, severity : LSP::DiagnosticSeverity | Nil = nil, code : Int32 | String | Nil = nil, code_description : LSP::CodeDescription | Nil = nil, tags : Nil | Array(LSP::DiagnosticTag) = nil, related_information : Nil | Array(LSP::DiagnosticRelatedInformation) = nil, data : JSON::Any | Nil = nil)
- .new(pull : JSON::PullParser)
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.
- #code_description : CodeDescription | Nil
- #code_description=(code_description : CodeDescription | Nil)
-
#data : JSON::Any | Nil
A data entry field that is preserved between a
textDocument/publishDiagnosticsnotification andtextDocument/codeActionrequest. -
#data=(data : JSON::Any | Nil)
A data entry field that is preserved between a
textDocument/publishDiagnosticsnotification andtextDocument/codeActionrequest. -
#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 : DiagnosticSeverity | Nil
- #severity=(severity : DiagnosticSeverity | Nil)
-
#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.
A data entry field that is preserved between a
textDocument/publishDiagnostics notification and
textDocument/codeAction request.
A data entry field that is preserved between a
textDocument/publishDiagnostics notification and
textDocument/codeAction request.
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'.