Class: LSP::ExecuteCommandRegistrationOptions

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

Overview

export interface ExecuteCommandRegistrationOptions extends ExecuteCommandOptions { }

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ ExecuteCommandRegistrationOptions

Returns a new instance of ExecuteCommandRegistrationOptions.



2668
2669
2670
2671
# File 'lib/lsp/lsp_protocol.rb', line 2668

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

Instance Attribute Details

#commandsObject

type: string[] # type: boolean



2666
2667
2668
# File 'lib/lsp/lsp_protocol.rb', line 2666

def commands
  @commands
end

#workDoneProgressObject

type: string[] # type: boolean



2666
2667
2668
# File 'lib/lsp/lsp_protocol.rb', line 2666

def workDoneProgress
  @workDoneProgress
end

Instance Method Details

#from_h!(value) ⇒ Object



2673
2674
2675
2676
2677
2678
# File 'lib/lsp/lsp_protocol.rb', line 2673

def from_h!(value)
  value = {} if value.nil?
  self.commands = value['commands'].map { |val| val } unless value['commands'].nil?
  self.workDoneProgress = value['workDoneProgress'] # Unknown type
  self
end