Class: LSP::RenameClientCapabilities
- 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
-
#dynamicRegistration ⇒ Object
type: boolean # type: boolean.
-
#prepareSupport ⇒ Object
type: boolean # type: boolean.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ RenameClientCapabilities
constructor
A new instance of RenameClientCapabilities.
Methods inherited from LSPBase
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
#dynamicRegistration ⇒ Object
type: boolean # type: boolean
2482 2483 2484 |
# File 'lib/lsp/lsp_protocol.rb', line 2482 def dynamicRegistration @dynamicRegistration end |
#prepareSupport ⇒ Object
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 |