Class: LSP::RenameClientCapabilities

Inherits:
LSPBase
  • Object
show all
Defined in:
lib/lsp/lsp_protocol.rb

Overview

export interface RenameClientCapabilities { /** * Whether rename supports dynamic registration. / dynamicRegistration?: boolean; /* * Client supports testing for validity of rename operations * before execution. * * @since version 3.12.0 */ prepareSupport?: boolean; }

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ RenameClientCapabilities

Returns a new instance of RenameClientCapabilities.



2484
2485
2486
2487
# File 'lib/lsp/lsp_protocol.rb', line 2484

def initialize(initial_hash = nil)
  super
  @optional_method_names = %i[dynamicRegistration prepareSupport]
end

Instance Attribute Details

#dynamicRegistrationObject

type: boolean # type: boolean



2482
2483
2484
# File 'lib/lsp/lsp_protocol.rb', line 2482

def dynamicRegistration
  @dynamicRegistration
end

#prepareSupportObject

type: boolean # type: boolean



2482
2483
2484
# File 'lib/lsp/lsp_protocol.rb', line 2482

def prepareSupport
  @prepareSupport
end

Instance Method Details

#from_h!(value) ⇒ Object



2489
2490
2491
2492
2493
2494
# File 'lib/lsp/lsp_protocol.rb', line 2489

def from_h!(value)
  value = {} if value.nil?
  self.dynamicRegistration = value['dynamicRegistration'] # Unknown type
  self.prepareSupport = value['prepareSupport'] # Unknown type
  self
end