class LanguageServer::Protocol::Interface::UnchangedDocumentDiagnosticReport

A diagnostic report indicating that the last returned report is still accurate.

Attributes

attributes[R]

Public Class Methods

new(kind:, result_id:) click to toggle source
# File lib/language_server/protocol/interface/unchanged_document_diagnostic_report.rb, line 9
def initialize(kind:, result_id:)
  @attributes = {}

  @attributes[:kind] = kind
  @attributes[:resultId] = result_id

  @attributes.freeze
end

Public Instance Methods

kind() click to toggle source

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

@return [any]

# File lib/language_server/protocol/interface/unchanged_document_diagnostic_report.rb, line 25
def kind
  attributes.fetch(:kind)
end
result_id() click to toggle source

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

@return [string]

# File lib/language_server/protocol/interface/unchanged_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/unchanged_document_diagnostic_report.rb, line 40
def to_hash
  attributes
end
to_json(*args) click to toggle source
# File lib/language_server/protocol/interface/unchanged_document_diagnostic_report.rb, line 44
def to_json(*args)
  to_hash.to_json(*args)
end