Class: LSP::DocumentOnTypeFormattingClientCapabilities
- Defined in:
- lib/lsp/lsp_protocol.rb
Overview
export interface DocumentOnTypeFormattingClientCapabilities
/**
* Whether on type formatting supports dynamic registration.
*/
dynamicRegistration?: boolean;
Instance Attribute Summary collapse
-
#dynamicRegistration ⇒ Object
type: boolean.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ DocumentOnTypeFormattingClientCapabilities
constructor
A new instance of DocumentOnTypeFormattingClientCapabilities.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ DocumentOnTypeFormattingClientCapabilities
Returns a new instance of DocumentOnTypeFormattingClientCapabilities.
2380 2381 2382 2383 |
# File 'lib/lsp/lsp_protocol.rb', line 2380 def initialize(initial_hash = nil) super @optional_method_names = %i[dynamicRegistration] end |
Instance Attribute Details
#dynamicRegistration ⇒ Object
type: boolean
2378 2379 2380 |
# File 'lib/lsp/lsp_protocol.rb', line 2378 def dynamicRegistration @dynamicRegistration end |
Instance Method Details
#from_h!(value) ⇒ Object
2385 2386 2387 2388 2389 |
# File 'lib/lsp/lsp_protocol.rb', line 2385 def from_h!(value) value = {} if value.nil? self.dynamicRegistration = value['dynamicRegistration'] # Unknown type self end |