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
An optional property to describe the error code.
-
#code_description=(code_description : CodeDescription | Nil)
An optional property to describe the error code.
-
#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
An array of related diagnostic information, e.g.
-
#related_information=(related_information : Array(DiagnosticRelatedInformation) | Nil)
An array of related diagnostic information, e.g.
-
#severity : DiagnosticSeverity | Nil
The diagnostic's severity.
-
#severity=(severity : DiagnosticSeverity | 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 code, which might appear in the user interface.
An optional property to describe the error code.
@since 3.16.0
An optional property to describe the error code.
@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 data entry field that is preserved between a
textDocument/publishDiagnostics
notification and
textDocument/codeAction
request.
@since 3.16.0
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'.
Additional metadata about the diagnostic.
@since 3.15.0
Additional metadata about the diagnostic.
@since 3.15.0