Class: LSP::ExecuteCommandOptions

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

Overview

export interface ExecuteCommandOptions extends WorkDoneProgressOptions

/**
 * The commands to be executed on the server
 */
commands: string[];

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ ExecuteCommandOptions

Returns a new instance of ExecuteCommandOptions.



2650
2651
2652
2653
# File 'lib/lsp/lsp_protocol.rb', line 2650

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

Instance Attribute Details

#commandsObject

type: string[] # type: boolean



2648
2649
2650
# File 'lib/lsp/lsp_protocol.rb', line 2648

def commands
  @commands
end

#workDoneProgressObject

type: string[] # type: boolean



2648
2649
2650
# File 'lib/lsp/lsp_protocol.rb', line 2648

def workDoneProgress
  @workDoneProgress
end

Instance Method Details

#from_h!(value) ⇒ Object



2655
2656
2657
2658
2659
2660
# File 'lib/lsp/lsp_protocol.rb', line 2655

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