Class: LSP::WorkDoneProgressOptions

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

Overview

export interface WorkDoneProgressOptions

workDoneProgress?: boolean;

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ WorkDoneProgressOptions

Returns a new instance of WorkDoneProgressOptions.



221
222
223
224
# File 'lib/lsp/lsp_protocol.rb', line 221

def initialize(initial_hash = nil)
  super
  @optional_method_names = %i[workDoneProgress]
end

Instance Attribute Details

#workDoneProgressObject

type: boolean



219
220
221
# File 'lib/lsp/lsp_protocol.rb', line 219

def workDoneProgress
  @workDoneProgress
end

Instance Method Details

#from_h!(value) ⇒ Object



226
227
228
229
230
# File 'lib/lsp/lsp_protocol.rb', line 226

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