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 #

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

[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 #

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

[View source]
def severity : DiagnosticSeverity | Nil #

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

[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]