Class: LSP::TextDocumentChangeRegistrationOptions

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

Overview

export interface TextDocumentChangeRegistrationOptions extends TextDocumentRegistrationOptions

/**
 * How documents are synced to the server.
 */
syncKind: TextDocumentSyncKind;

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: TextDocumentSyncKind # type: DocumentSelector | null



597
598
599
# File 'lib/lsp/lsp_protocol.rb', line 597

def documentSelector
  @documentSelector
end

#syncKindObject

type: TextDocumentSyncKind # type: DocumentSelector | null



597
598
599
# File 'lib/lsp/lsp_protocol.rb', line 597

def syncKind
  @syncKind
end

Instance Method Details

#from_h!(value) ⇒ Object



599
600
601
602
603
604
# File 'lib/lsp/lsp_protocol.rb', line 599

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