Class: LSP::WorkDoneProgressParams

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

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

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

#workDoneTokenObject

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