Class: LSP::DidChangeWatchedFilesClientCapabilities

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

Overview

export interface DidChangeWatchedFilesClientCapabilities

/**
 * Did change watched files notification supports dynamic registration. Please note
 * that the current protocol doesn't support static configuration for file changes
 * from the server side.
 */
dynamicRegistration?: boolean;

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ DidChangeWatchedFilesClientCapabilities

Returns a new instance of DidChangeWatchedFilesClientCapabilities.



700
701
702
703
# File 'lib/lsp/lsp_protocol.rb', line 700

def initialize(initial_hash = nil)
  super
  @optional_method_names = i[dynamicRegistration]
end

Instance Attribute Details

#dynamicRegistrationObject

type: boolean



698
699
700
# File 'lib/lsp/lsp_protocol.rb', line 698

def dynamicRegistration
  @dynamicRegistration
end

Instance Method Details

#from_h!(value) ⇒ Object



705
706
707
708
709
# File 'lib/lsp/lsp_protocol.rb', line 705

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