struct

LSP::Diagnostic

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

code

The diagnostic's code, which might appear in the user interface.

Source
code=(code : Int32 | String | Nil)

The diagnostic's code, which might appear in the user interface.

Source
code_description

An optional property to describe the error code

Source
code_description=(code_description : CodeDescription | Nil)

An optional property to describe the error code

Source
data

A data entry field that is preserved between a textDocument/publishDiagnostics notification and textDocument/codeAction request.

Source
data=(data : JSON::Any | Nil)

A data entry field that is preserved between a textDocument/publishDiagnostics notification and textDocument/codeAction request.

Source
message

The diagnostic's message.

Source
message=(message : String)

The diagnostic's message.

Source
range

The range at which the message applies.

Source
range=(range : Range)

The range at which the message applies.

Source
severity

The diagnostic's severity. Can be omitted. If omitted it is up to the client to interpret diagnostics as error, warning, info or hint.

Source
severity=(severity : DiagnosticSeverity | Nil)

The diagnostic's severity. Can be omitted. If omitted it is up to the client to interpret diagnostics as error, warning, info or hint.

Source
source

A human-readable string describing the source of this diagnostic, e.g. 'typescript' or 'super lint'.

Source
source=(source : String | Nil)

A human-readable string describing the source of this diagnostic, e.g. 'typescript' or 'super lint'.

Source
tags

Additional metadata about the diagnostic.

Source
tags=(tags : Array(DiagnosticTag) | Nil)

Additional metadata about the diagnostic.

Source