Class: LSP::ReferenceClientCapabilities

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

Overview

export interface ReferenceClientCapabilities

/**
 * Whether references supports dynamic registration.
 */
dynamicRegistration?: boolean;

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ ReferenceClientCapabilities

Returns a new instance of ReferenceClientCapabilities.



1514
1515
1516
1517
# File 'lib/lsp/lsp_protocol.rb', line 1514

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

Instance Attribute Details

#dynamicRegistrationObject

type: boolean



1512
1513
1514
# File 'lib/lsp/lsp_protocol.rb', line 1512

def dynamicRegistration
  @dynamicRegistration
end

Instance Method Details

#from_h!(value) ⇒ Object



1519
1520
1521
1522
1523
# File 'lib/lsp/lsp_protocol.rb', line 1519

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