class LanguageServer::Protocol::Interface::WorkspaceFullDocumentDiagnosticReport
A full document diagnostic report for a workspace diagnostic result.
Attributes
attributes[R]
Public Class Methods
new(kind:, result_id: nil, items:, uri:, version:)
click to toggle source
# File lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb, line 8 def initialize(kind:, result_id: nil, items:, uri:, version:) @attributes = {} @attributes[:kind] = kind @attributes[:resultId] = result_id if result_id @attributes[:items] = items @attributes[:uri] = uri @attributes[:version] = version @attributes.freeze end
Public Instance Methods
items()
click to toggle source
The actual items.
@return [Diagnostic
# File lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb, line 42 def items attributes.fetch(:items) end
kind()
click to toggle source
A full document diagnostic report.
@return [any]
# File lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb, line 24 def kind attributes.fetch(:kind) end
result_id()
click to toggle source
An optional result id. If provided it will be sent on the next diagnostic request for the same document.
@return [string]
# File lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb, line 34 def result_id attributes.fetch(:resultId) end
to_hash()
click to toggle source
# File lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb, line 65 def to_hash attributes end
to_json(*args)
click to toggle source
# File lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb, line 69 def to_json(*args) to_hash.to_json(*args) end
uri()
click to toggle source
The URI for which diagnostic information is reported.
@return [string]
# File lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb, line 50 def uri attributes.fetch(:uri) end
version()
click to toggle source
The version number for which the diagnostics are reported. If the document is not marked as open ‘null` can be provided.
@return [number]
# File lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb, line 59 def version attributes.fetch(:version) end