class LanguageServer::Protocol::Interface::InitializeError

Known error codes for an `InitializeError`;

Attributes

attributes[R]

Public Class Methods

new(retry:) click to toggle source
# File lib/language_server/protocol/interface/initialize_error.rb, line 8
def initialize(retry:)
  @attributes = {}

  @attributes[:retry] = binding.local_variable_get(:retry)

  @attributes.freeze
end

Public Instance Methods

retry() click to toggle source

Indicates whether the client execute the following retry logic: (1) show the message provided by the ResponseError to the user (2) user selects retry or cancel (3) if user selected retry the initialize method is sent again.

@return [boolean]

# File lib/language_server/protocol/interface/initialize_error.rb, line 23
def retry
  attributes.fetch(:retry)
end
to_hash() click to toggle source
# File lib/language_server/protocol/interface/initialize_error.rb, line 29
def to_hash
  attributes
end
to_json(*args) click to toggle source
# File lib/language_server/protocol/interface/initialize_error.rb, line 33
def to_json(*args)
  to_hash.to_json(*args)
end