Class: LSP::TextDocumentSaveRegistrationOptions

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

Overview

export interface TextDocumentSaveRegistrationOptions extends TextDocumentRegistrationOptions, SaveOptions { }

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

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

#documentSelectorObject

type: DocumentSelector | null # type: boolean



653
654
655
# File 'lib/lsp/lsp_protocol.rb', line 653

def documentSelector
  @documentSelector
end

#includeTextObject

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