Class: LSP::ExecuteCommandClientCapabilities
- Defined in:
- lib/lsp/lsp_protocol.rb
Overview
export interface ExecuteCommandClientCapabilities
/**
* Execute command supports dynamic registration.
*/
dynamicRegistration?: boolean;
Instance Attribute Summary collapse
-
#dynamicRegistration ⇒ Object
type: boolean.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ ExecuteCommandClientCapabilities
constructor
A new instance of ExecuteCommandClientCapabilities.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ ExecuteCommandClientCapabilities
Returns a new instance of ExecuteCommandClientCapabilities.
2602 2603 2604 2605 |
# File 'lib/lsp/lsp_protocol.rb', line 2602 def initialize(initial_hash = nil) super @optional_method_names = %i[dynamicRegistration] end |
Instance Attribute Details
#dynamicRegistration ⇒ Object
type: boolean
2600 2601 2602 |
# File 'lib/lsp/lsp_protocol.rb', line 2600 def dynamicRegistration @dynamicRegistration end |
Instance Method Details
#from_h!(value) ⇒ Object
2607 2608 2609 2610 2611 |
# File 'lib/lsp/lsp_protocol.rb', line 2607 def from_h!(value) value = {} if value.nil? self.dynamicRegistration = value['dynamicRegistration'] # Unknown type self end |