Class: LSP::DidChangeWatchedFilesParams

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

Overview

export interface DidChangeWatchedFilesParams

/**
 * The actual file events.
 */
changes: FileEvent[];

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

#changesObject

type: FileEvent[]



719
720
721
# File 'lib/lsp/lsp_protocol.rb', line 719

def changes
  @changes
end

Instance Method Details

#from_h!(value) ⇒ Object



721
722
723
724
725
# File 'lib/lsp/lsp_protocol.rb', line 721

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