class LanguageServer::Protocol::Interface::RenameClientCapabilities

Attributes

attributes[R]

Public Class Methods

new(dynamic_registration: nil, prepare_support: nil, prepare_support_default_behavior: nil, honors_change_annotations: nil) click to toggle source
# File lib/language_server/protocol/interface/rename_client_capabilities.rb, line 5
def initialize(dynamic_registration: nil, prepare_support: nil, prepare_support_default_behavior: nil, honors_change_annotations: nil)
  @attributes = {}

  @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration
  @attributes[:prepareSupport] = prepare_support if prepare_support
  @attributes[:prepareSupportDefaultBehavior] = prepare_support_default_behavior if prepare_support_default_behavior
  @attributes[:honorsChangeAnnotations] = honors_change_annotations if honors_change_annotations

  @attributes.freeze
end

Public Instance Methods

dynamic_registration() click to toggle source

Whether rename supports dynamic registration.

@return [boolean]

# File lib/language_server/protocol/interface/rename_client_capabilities.rb, line 20
def dynamic_registration
  attributes.fetch(:dynamicRegistration)
end
honors_change_annotations() click to toggle source

Whether th client honors the change annotations in text edits and resource operations returned via the rename request's workspace edit by for example presenting the workspace edit in the user interface and asking for confirmation.

@return [boolean]

# File lib/language_server/protocol/interface/rename_client_capabilities.rb, line 53
def honors_change_annotations
  attributes.fetch(:honorsChangeAnnotations)
end
prepare_support() click to toggle source

Client supports testing for validity of rename operations before execution.

@return [boolean]

# File lib/language_server/protocol/interface/rename_client_capabilities.rb, line 29
def prepare_support
  attributes.fetch(:prepareSupport)
end
prepare_support_default_behavior() click to toggle source

Client supports the default behavior result (`{ defaultBehavior: boolean }`).

The value indicates the default behavior used by the client.

@return [any]

# File lib/language_server/protocol/interface/rename_client_capabilities.rb, line 41
def prepare_support_default_behavior
  attributes.fetch(:prepareSupportDefaultBehavior)
end
to_hash() click to toggle source
# File lib/language_server/protocol/interface/rename_client_capabilities.rb, line 59
def to_hash
  attributes
end
to_json(*args) click to toggle source
# File lib/language_server/protocol/interface/rename_client_capabilities.rb, line 63
def to_json(*args)
  to_hash.to_json(*args)
end