Class: LSP::TextDocumentRegistrationOptions

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

Overview

export interface TextDocumentRegistrationOptions

/**
 * A document selector to identify the scope of the registration. If set to null
 * the document selector provided on the client side will be used.
 */
documentSelector: DocumentSelector | null;

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#initialize, #to_h, #to_json

Constructor Details

This class inherits a constructor from LSP::LSPBase

Instance Attribute Details

#documentSelectorObject

type: DocumentSelector | null



185
186
187
# File 'lib/lsp/lsp_protocol.rb', line 185

def documentSelector
  @documentSelector
end

Instance Method Details

#from_h!(value) ⇒ Object



187
188
189
190
191
# File 'lib/lsp/lsp_protocol.rb', line 187

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