Class: LSP::PartialResultParams

Inherits:
LSPBase
  • Object
show all
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

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

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

#partialResultTokenObject

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