Class: LSP::DocumentHighlightClientCapabilities

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

Overview

export interface DocumentHighlightClientCapabilities

/**
 * Whether document highlight 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) ⇒ DocumentHighlightClientCapabilities

Returns a new instance of DocumentHighlightClientCapabilities.



1592
1593
1594
1595
# File 'lib/lsp/lsp_protocol.rb', line 1592

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

Instance Attribute Details

#dynamicRegistrationObject

type: boolean



1590
1591
1592
# File 'lib/lsp/lsp_protocol.rb', line 1590

def dynamicRegistration
  @dynamicRegistration
end

Instance Method Details

#from_h!(value) ⇒ Object



1597
1598
1599
1600
1601
# File 'lib/lsp/lsp_protocol.rb', line 1597

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