Class: LSP::WorkDoneProgressCancelParams

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

Overview

export interface WorkDoneProgressCancelParams

/**
 * 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



190
191
192
# File 'lib/lsp/lsp_protocol_progress.rb', line 190

def token
  @token
end

Instance Method Details

#from_h!(value) ⇒ Object



192
193
194
195
196
# File 'lib/lsp/lsp_protocol_progress.rb', line 192

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