Class: LSP::TextDocumentSaveRegistrationOptions
- Defined in:
- lib/lsp/lsp_protocol.rb
Overview
export interface TextDocumentSaveRegistrationOptions extends TextDocumentRegistrationOptions, SaveOptions { }
Instance Attribute Summary collapse
-
#documentSelector ⇒ Object
type: DocumentSelector | null # type: boolean.
-
#includeText ⇒ Object
type: DocumentSelector | null # type: boolean.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ TextDocumentSaveRegistrationOptions
constructor
A new instance of TextDocumentSaveRegistrationOptions.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ TextDocumentSaveRegistrationOptions
Returns a new instance of TextDocumentSaveRegistrationOptions.
655 656 657 658 |
# File 'lib/lsp/lsp_protocol.rb', line 655 def initialize(initial_hash = nil) super @optional_method_names = %i[includeText] end |
Instance Attribute Details
#documentSelector ⇒ Object
type: DocumentSelector | null # type: boolean
653 654 655 |
# File 'lib/lsp/lsp_protocol.rb', line 653 def documentSelector @documentSelector end |
#includeText ⇒ Object
type: DocumentSelector | null # type: boolean
653 654 655 |
# File 'lib/lsp/lsp_protocol.rb', line 653 def includeText @includeText end |
Instance Method Details
#from_h!(value) ⇒ Object
660 661 662 663 664 665 |
# File 'lib/lsp/lsp_protocol.rb', line 660 def from_h!(value) value = {} if value.nil? self.documentSelector = value['documentSelector'] # Unknown type self.includeText = value['includeText'] # Unknown type self end |