Class: LSP::ExecuteCommandClientCapabilities

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

Overview

export interface ExecuteCommandClientCapabilities

/**
 * Execute command supports dynamic registration.
 */
dynamicRegistration?: boolean;

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

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

#dynamicRegistrationObject

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