Class: LSP::DocumentFormattingRegistrationOptions

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

Overview

export interface DocumentFormattingRegistrationOptions extends TextDocumentRegistrationOptions, DocumentFormattingOptions { }

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ DocumentFormattingRegistrationOptions

Returns a new instance of DocumentFormattingRegistrationOptions.



2270
2271
2272
2273
# File 'lib/lsp/lsp_protocol.rb', line 2270

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

Instance Attribute Details

#documentSelectorObject

type: DocumentSelector | null # type: boolean



2268
2269
2270
# File 'lib/lsp/lsp_protocol.rb', line 2268

def documentSelector
  @documentSelector
end

#workDoneProgressObject

type: DocumentSelector | null # type: boolean



2268
2269
2270
# File 'lib/lsp/lsp_protocol.rb', line 2268

def workDoneProgress
  @workDoneProgress
end

Instance Method Details

#from_h!(value) ⇒ Object



2275
2276
2277
2278
2279
2280
# File 'lib/lsp/lsp_protocol.rb', line 2275

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