Class: LSP::DocumentLinkClientCapabilities

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

Overview

export interface DocumentLinkClientCapabilities

/**
 * Whether document link supports dynamic registration.
 */
dynamicRegistration?: boolean;
/**
 * Whether the client support the `tooltip` property on `DocumentLink`.
 *
 * @since 3.15.0
 */
tooltipSupport?: boolean;

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from LSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ DocumentLinkClientCapabilities

Returns a new instance of DocumentLinkClientCapabilities.



2123
2124
2125
2126
# File 'lib/lsp/lsp_protocol.rb', line 2123

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

Instance Attribute Details

#dynamicRegistrationObject

type: boolean # type: boolean



2121
2122
2123
# File 'lib/lsp/lsp_protocol.rb', line 2121

def dynamicRegistration
  @dynamicRegistration
end

#tooltipSupportObject

type: boolean # type: boolean



2121
2122
2123
# File 'lib/lsp/lsp_protocol.rb', line 2121

def tooltipSupport
  @tooltipSupport
end

Instance Method Details

#from_h!(value) ⇒ Object



2128
2129
2130
2131
2132
2133
# File 'lib/lsp/lsp_protocol.rb', line 2128

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