Class: LSP::PartialResultParams
- Defined in:
- lib/lsp/lsp_protocol.rb
Overview
export interface PartialResultParams
/**
* An optional token that a server can use to report partial results (e.g. streaming) to
* the client.
*/
partialResultToken?: ProgressToken;
Instance Attribute Summary collapse
-
#partialResultToken ⇒ Object
type: ProgressToken.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ PartialResultParams
constructor
A new instance of PartialResultParams.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ PartialResultParams
Returns a new instance of PartialResultParams.
122 123 124 125 |
# File 'lib/lsp/lsp_protocol.rb', line 122 def initialize(initial_hash = nil) super @optional_method_names = %i[partialResultToken] end |
Instance Attribute Details
#partialResultToken ⇒ Object
type: ProgressToken
120 121 122 |
# File 'lib/lsp/lsp_protocol.rb', line 120 def partialResultToken @partialResultToken end |
Instance Method Details
#from_h!(value) ⇒ Object
127 128 129 130 131 |
# File 'lib/lsp/lsp_protocol.rb', line 127 def from_h!(value) value = {} if value.nil? self.partialResultToken = value['partialResultToken'] # Unknown type self end |