Class: LSP::DocumentRangeFormattingRegistrationOptions
- Defined in:
- lib/lsp/lsp_protocol.rb
Overview
export interface DocumentRangeFormattingRegistrationOptions extends TextDocumentRegistrationOptions, DocumentRangeFormattingOptions { }
Instance Attribute Summary collapse
-
#documentSelector ⇒ Object
type: DocumentSelector | null # type: boolean.
-
#workDoneProgress ⇒ Object
type: DocumentSelector | null # type: boolean.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ DocumentRangeFormattingRegistrationOptions
constructor
A new instance of DocumentRangeFormattingRegistrationOptions.
Methods inherited from LSPBase
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
#documentSelector ⇒ Object
type: DocumentSelector | null # type: boolean
2356 2357 2358 |
# File 'lib/lsp/lsp_protocol.rb', line 2356 def documentSelector @documentSelector end |
#workDoneProgress ⇒ Object
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 |