struct LSP::Diagnostic

Included Modules

Defined in:

lsp/protocol/diagnostic.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def code : Int32 | String #

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


[View source]
def code=(code : Int32 | String) #

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


[View source]
def code_description : CodeDescription | Nil #

An optional property to describe the error code.

@since 3.16.0


[View source]
def code_description=(code_description : CodeDescription | Nil) #

An optional property to describe the error code.

@since 3.16.0


[View source]
def data : String | Nil #

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

@since 3.16.0


[View source]
def data=(data : String | Nil) #

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

@since 3.16.0


[View source]
def message : String | Nil #

The diagnostic's message.


[View source]
def message=(message : String | Nil) #

The diagnostic's message.


[View source]
def range : Range #

The range at which the message applies.


[View source]
def range=(range : Range) #

The range at which the message applies.


[View source]
def related_information : Array(DiagnosticRelatedInformation) | Nil #

An array of related diagnostic information, e.g. when symbol-names within a scope collide all definitions can be marked via this property.


[View source]
def related_information=(related_information : Array(DiagnosticRelatedInformation) | Nil) #

An array of related diagnostic information, e.g. when symbol-names within a scope collide all definitions can be marked via this property.


[View source]
def 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.


[View source]
def 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.


[View source]
def source : String | Nil #

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


[View source]
def source=(source : String | Nil) #

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


[View source]
def tags : Array(DiagnosticTag) | Nil #

Additional metadata about the diagnostic.

@since 3.15.0


[View source]
def tags=(tags : Array(DiagnosticTag) | Nil) #

Additional metadata about the diagnostic.

@since 3.15.0


[View source]