Class: LSP::WorkDoneProgressParams
- Defined in:
- lib/lsp/lsp_protocol.rb
Overview
export interface WorkDoneProgressParams
/**
* An optional token that a server can use to report work done progress.
*/
workDoneToken?: ProgressToken;
Instance Attribute Summary collapse
-
#workDoneToken ⇒ Object
type: ProgressToken.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ WorkDoneProgressParams
constructor
A new instance of WorkDoneProgressParams.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ WorkDoneProgressParams
Returns a new instance of WorkDoneProgressParams.
100 101 102 103 |
# File 'lib/lsp/lsp_protocol.rb', line 100 def initialize(initial_hash = nil) super @optional_method_names = %i[workDoneToken] end |
Instance Attribute Details
#workDoneToken ⇒ Object
type: ProgressToken
98 99 100 |
# File 'lib/lsp/lsp_protocol.rb', line 98 def workDoneToken @workDoneToken end |
Instance Method Details
#from_h!(value) ⇒ Object
105 106 107 108 109 |
# File 'lib/lsp/lsp_protocol.rb', line 105 def from_h!(value) value = {} if value.nil? self.workDoneToken = value['workDoneToken'] # Unknown type self end |