struct LSP::Diagnostic
- LSP::Diagnostic
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Defined in:
lsp/protocol/diagnostic.crConstructors
Instance Method Summary
-
#code : Int32 | String
The diagnostic's code, which might appear in the user interface.
-
#code=(code : Int32 | String)
The diagnostic's code, which might appear in the user interface.
- #code_description : CodeDescription | Nil
- #code_description=(code_description : CodeDescription | Nil)
-
#data : String | Nil
A data entry field that is preserved between a
textDocument/publishDiagnostics
notification andtextDocument/codeAction
request. -
#data=(data : String | Nil)
A data entry field that is preserved between a
textDocument/publishDiagnostics
notification andtextDocument/codeAction
request. -
#message : String | Nil
The diagnostic's message.
-
#message=(message : String | Nil)
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.
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.
@since 3.16.0
A data entry field that is preserved between a
textDocument/publishDiagnostics
notification and
textDocument/codeAction
request.
@since 3.16.0
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'.
Additional metadata about the diagnostic.
@since 3.15.0
Additional metadata about the diagnostic.
@since 3.15.0