class LSProtocol::RelatedUnchangedDocumentDiagnosticReport

Overview

An unchanged 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(kind : String | Nil, result_id : String | Nil, related_documents : Hash(URI, FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport) | Nil = nil) #

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

[View source]

Instance Method Detail

def kind : String #

A document diagnostic report indicating no changes to the last result. A server can only return unchanged if result ids are provided.


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

A result id which will be sent on the next diagnostic request for the same document.


[View source]