class LSProtocol::RelatedFullDocumentDiagnosticReport

Overview

A full diagnostic report with a set of related documents.

@since 3.17.0

Included Modules

Defined in:

lsprotocol/types.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(items : Array(Diagnostic) | Nil, kind : String | Nil, related_documents : Hash(URI, FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport) | Nil = nil, result_id : String | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def items : Array(Diagnostic) #

The actual items.


[View source]
def kind : String #

A full document diagnostic report.


[View source]
def related_documents : Hash(URI, FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport) | Nil #

Diagnostics of related documents. This information is useful in programming languages where code in a file A can generate diagnostics in a file B which A depends on. An example of such a language is C/C++ where marco definitions in a file a.cpp and result in errors in a header file b.hpp.

@since 3.17.0


[View source]
def result_id : String | Nil #

An optional result id. If provided it will be sent on the next diagnostic request for the same document.


[View source]