Class: LSP::DocumentLinkClientCapabilities
- 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
-
#dynamicRegistration ⇒ Object
type: boolean # type: boolean.
-
#tooltipSupport ⇒ Object
type: boolean # type: boolean.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ DocumentLinkClientCapabilities
constructor
A new instance of DocumentLinkClientCapabilities.
Methods inherited from LSPBase
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
#dynamicRegistration ⇒ Object
type: boolean # type: boolean
2121 2122 2123 |
# File 'lib/lsp/lsp_protocol.rb', line 2121 def dynamicRegistration @dynamicRegistration end |
#tooltipSupport ⇒ Object
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 |