Class: LSP::ExecuteCommandRegistrationOptions
- Defined in:
- lib/lsp/lsp_protocol.rb
Overview
export interface ExecuteCommandRegistrationOptions extends ExecuteCommandOptions { }
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) ⇒ ExecuteCommandRegistrationOptions
constructor
A new instance of ExecuteCommandRegistrationOptions.
Methods inherited from LSPBase
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
#commands ⇒ Object
type: string[] # type: boolean
2666 2667 2668 |
# File 'lib/lsp/lsp_protocol.rb', line 2666 def commands @commands end |
#workDoneProgress ⇒ Object
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 |