Class: LSP::CodeLensClientCapabilities
- Defined in:
- lib/lsp/lsp_protocol.rb
Overview
export interface CodeLensClientCapabilities
/**
* Whether code lens 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) ⇒ CodeLensClientCapabilities
constructor
A new instance of CodeLensClientCapabilities.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ CodeLensClientCapabilities
Returns a new instance of CodeLensClientCapabilities.
2032 2033 2034 2035 |
# File 'lib/lsp/lsp_protocol.rb', line 2032 def initialize(initial_hash = nil) super @optional_method_names = %i[dynamicRegistration] end |
Instance Attribute Details
#dynamicRegistration ⇒ Object
type: boolean
2030 2031 2032 |
# File 'lib/lsp/lsp_protocol.rb', line 2030 def dynamicRegistration @dynamicRegistration end |
Instance Method Details
#from_h!(value) ⇒ Object
2037 2038 2039 2040 2041 |
# File 'lib/lsp/lsp_protocol.rb', line 2037 def from_h!(value) value = {} if value.nil? self.dynamicRegistration = value['dynamicRegistration'] # Unknown type self end |