class LanguageServer::Protocol::Interface::DiagnosticRegistrationOptions


Diagnostic registration options.

def document_selector

Returns:
  • (DocumentSelector) -
def document_selector
  attributes.fetch(:documentSelector)
end

def id

Returns:
  • (string) -
def id
  attributes.fetch(:id)
end

def identifier

Returns:
  • (string) -
def identifier
  attributes.fetch(:identifier)
end

def initialize(document_selector:, work_done_progress: nil, identifier: nil, inter_file_dependencies:, workspace_diagnostics:, id: nil)

def initialize(document_selector:, work_done_progress: nil, identifier: nil, inter_file_dependencies:, workspace_diagnostics:, id: nil)
  @attributes = {}
  @attributes[:documentSelector] = document_selector
  @attributes[:workDoneProgress] = work_done_progress if work_done_progress
  @attributes[:identifier] = identifier if identifier
  @attributes[:interFileDependencies] = inter_file_dependencies
  @attributes[:workspaceDiagnostics] = workspace_diagnostics
  @attributes[:id] = id if id
  @attributes.freeze
end

def inter_file_dependencies

Returns:
  • (boolean) -
def inter_file_dependencies
  attributes.fetch(:interFileDependencies)
end

def to_hash

def to_hash
  attributes
end

def to_json(*args)

def to_json(*args)
  to_hash.to_json(*args)
end

def work_done_progress

Returns:
  • (boolean) -
def work_done_progress
  attributes.fetch(:workDoneProgress)
end

def workspace_diagnostics

Returns:
  • (boolean) -
def workspace_diagnostics
  attributes.fetch(:workspaceDiagnostics)
end