Class: LSP::DidChangeWatchedFilesRegistrationOptions

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

Overview

export interface DidChangeWatchedFilesRegistrationOptions

/**
 * The watchers to register.
 */
watchers: FileSystemWatcher[];

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

#watchersObject

type: FileSystemWatcher[]



756
757
758
# File 'lib/lsp/lsp_protocol.rb', line 756

def watchers
  @watchers
end

Instance Method Details

#from_h!(value) ⇒ Object



758
759
760
761
762
# File 'lib/lsp/lsp_protocol.rb', line 758

def from_h!(value)
  value = {} if value.nil?
  self.watchers = to_typed_aray(value['watchers'], FileSystemWatcher)
  self
end