Class: LSP::WorkDoneProgressCreateParams

Inherits:
LSPBase
  • Object
show all
Defined in:
lib/lsp/lsp_protocol_progress.rb

Overview

export interface WorkDoneProgressCreateParams

/**
 * The token to be used to report progress.
 */
token: ProgressToken;

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#initialize, #to_h, #to_json

Constructor Details

This class inherits a constructor from LSP::LSPBase

Instance Attribute Details

#tokenObject

type: ProgressToken



174
175
176
# File 'lib/lsp/lsp_protocol_progress.rb', line 174

def token
  @token
end

Instance Method Details

#from_h!(value) ⇒ Object



176
177
178
179
180
# File 'lib/lsp/lsp_protocol_progress.rb', line 176

def from_h!(value)
  value = {} if value.nil?
  self.token = value['token'] # Unknown type
  self
end