Class: LSP::DocumentFormattingClientCapabilities
- Defined in:
- lib/lsp/lsp_protocol.rb
Overview
export interface DocumentFormattingClientCapabilities
/**
* Whether 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) ⇒ DocumentFormattingClientCapabilities
constructor
A new instance of DocumentFormattingClientCapabilities.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ DocumentFormattingClientCapabilities
Returns a new instance of DocumentFormattingClientCapabilities.
2209 2210 2211 2212 |
# File 'lib/lsp/lsp_protocol.rb', line 2209 def initialize(initial_hash = nil) super @optional_method_names = %i[dynamicRegistration] end |
Instance Attribute Details
#dynamicRegistration ⇒ Object
type: boolean
2207 2208 2209 |
# File 'lib/lsp/lsp_protocol.rb', line 2207 def dynamicRegistration @dynamicRegistration end |
Instance Method Details
#from_h!(value) ⇒ Object
2214 2215 2216 2217 2218 |
# File 'lib/lsp/lsp_protocol.rb', line 2214 def from_h!(value) value = {} if value.nil? self.dynamicRegistration = value['dynamicRegistration'] # Unknown type self end |