View Source GenLSP.Structures.RelatedUnchangedDocumentDiagnosticReport (gen_lsp v0.10.0)

An unchanged diagnostic report with a set of related documents.

@since 3.17.0

Link to this section Summary

Functions

Fields

  • related_documents: 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.

Link to this section Types

@type t() :: %GenLSP.Structures.RelatedUnchangedDocumentDiagnosticReport{
  kind: String.t(),
  related_documents:
    %{
      required(GenLSP.BaseTypes.document_uri()) =>
        GenLSP.Structures.FullDocumentDiagnosticReport.t()
        | GenLSP.Structures.UnchangedDocumentDiagnosticReport.t()
    }
    | nil,
  result_id: String.t()
}

Link to this section Functions

Link to this function

%GenLSP.Structures.RelatedUnchangedDocumentDiagnosticReport{}

View Source (struct)

fields

Fields

  • related_documents: 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

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

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