Class: LSP::DocumentRangeFormattingOptions

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

Overview

export interface DocumentRangeFormattingOptions extends WorkDoneProgressOptions { }

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ DocumentRangeFormattingOptions

Returns a new instance of DocumentRangeFormattingOptions.



2341
2342
2343
2344
# File 'lib/lsp/lsp_protocol.rb', line 2341

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

Instance Attribute Details

#workDoneProgressObject

type: boolean



2339
2340
2341
# File 'lib/lsp/lsp_protocol.rb', line 2339

def workDoneProgress
  @workDoneProgress
end

Instance Method Details

#from_h!(value) ⇒ Object



2346
2347
2348
2349
2350
# File 'lib/lsp/lsp_protocol.rb', line 2346

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