Class: LSP::ExecuteCommandOptions
- 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
-
#commands ⇒ Object
type: string[] # type: boolean.
-
#workDoneProgress ⇒ Object
type: string[] # type: boolean.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ ExecuteCommandOptions
constructor
A new instance of ExecuteCommandOptions.
Methods inherited from LSPBase
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
#commands ⇒ Object
type: string[] # type: boolean
2648 2649 2650 |
# File 'lib/lsp/lsp_protocol.rb', line 2648 def commands @commands end |
#workDoneProgress ⇒ Object
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 |