Class: LSP::SelectionRangeClientCapabilities
- 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
-
#dynamicRegistration ⇒ Object
type: boolean.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ SelectionRangeClientCapabilities
constructor
A new instance of SelectionRangeClientCapabilities.
Methods inherited from LSPBase
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
#dynamicRegistration ⇒ Object
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 |