Class: LSP::DocumentRangeFormattingRegistrationOptions

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

Overview

export interface DocumentRangeFormattingRegistrationOptions extends TextDocumentRegistrationOptions, DocumentRangeFormattingOptions { }

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ DocumentRangeFormattingRegistrationOptions

Returns a new instance of DocumentRangeFormattingRegistrationOptions.



2358
2359
2360
2361
# File 'lib/lsp/lsp_protocol.rb', line 2358

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

Instance Attribute Details

#documentSelectorObject

type: DocumentSelector | null # type: boolean



2356
2357
2358
# File 'lib/lsp/lsp_protocol.rb', line 2356

def documentSelector
  @documentSelector
end

#workDoneProgressObject

type: DocumentSelector | null # type: boolean



2356
2357
2358
# File 'lib/lsp/lsp_protocol.rb', line 2356

def workDoneProgress
  @workDoneProgress
end

Instance Method Details

#from_h!(value) ⇒ Object



2363
2364
2365
2366
2367
2368
# File 'lib/lsp/lsp_protocol.rb', line 2363

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