Class: LSP::SelectionRangeClientCapabilities

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

Overview

export interface SelectionRangeClientCapabilities

/**
 * Whether implementation supports dynamic registration for selection range providers. If this is set to `true`
 * the client supports the new `SelectionRangeRegistrationOptions` return value for the corresponding server
 * capability as well.
 */
dynamicRegistration?: boolean;

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ SelectionRangeClientCapabilities

Returns a new instance of SelectionRangeClientCapabilities.



22
23
24
25
# File 'lib/lsp/lsp_protocol_selectionrange.rb', line 22

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

Instance Attribute Details

#dynamicRegistrationObject

type: boolean



20
21
22
# File 'lib/lsp/lsp_protocol_selectionrange.rb', line 20

def dynamicRegistration
  @dynamicRegistration
end

Instance Method Details

#from_h!(value) ⇒ Object



27
28
29
30
31
# File 'lib/lsp/lsp_protocol_selectionrange.rb', line 27

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