Class: LSP::DocumentFormattingOptions

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

Overview

export interface DocumentFormattingOptions extends WorkDoneProgressOptions { }

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ DocumentFormattingOptions

Returns a new instance of DocumentFormattingOptions.



2253
2254
2255
2256
# File 'lib/lsp/lsp_protocol.rb', line 2253

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

Instance Attribute Details

#workDoneProgressObject

type: boolean



2251
2252
2253
# File 'lib/lsp/lsp_protocol.rb', line 2251

def workDoneProgress
  @workDoneProgress
end

Instance Method Details

#from_h!(value) ⇒ Object



2258
2259
2260
2261
2262
# File 'lib/lsp/lsp_protocol.rb', line 2258

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