Class: LanguageServer::Protocol::Interface::WorkspaceSymbolClientCapabilities
- Inherits:
-
Object
- Object
- LanguageServer::Protocol::Interface::WorkspaceSymbolClientCapabilities
- Defined in:
- lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Instance Method Summary collapse
-
#dynamic_registration ⇒ boolean
Symbol request supports dynamic registration.
-
#initialize(dynamic_registration: nil, symbol_kind: nil, tag_support: nil) ⇒ WorkspaceSymbolClientCapabilities
constructor
A new instance of WorkspaceSymbolClientCapabilities.
-
#symbol_kind ⇒ { valueSet?: any[]; }
Specific capabilities for the ‘SymbolKind` in the `workspace/symbol` request.
-
#tag_support ⇒ { valueSet: 1[]; }
The client supports tags on ‘SymbolInformation`.
- #to_hash ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(dynamic_registration: nil, symbol_kind: nil, tag_support: nil) ⇒ WorkspaceSymbolClientCapabilities
Returns a new instance of WorkspaceSymbolClientCapabilities.
5 6 7 8 9 10 11 12 13 |
# File 'lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb', line 5 def initialize(dynamic_registration: nil, symbol_kind: nil, tag_support: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes[:symbolKind] = symbol_kind if symbol_kind @attributes[:tagSupport] = tag_support if tag_support @attributes.freeze end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
41 42 43 |
# File 'lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb', line 41 def attributes @attributes end |
Instance Method Details
#dynamic_registration ⇒ boolean
Symbol request supports dynamic registration.
19 20 21 |
# File 'lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb', line 19 def dynamic_registration attributes.fetch(:dynamicRegistration) end |
#symbol_kind ⇒ { valueSet?: any[]; }
Specific capabilities for the ‘SymbolKind` in the `workspace/symbol` request.
28 29 30 |
# File 'lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb', line 28 def symbol_kind attributes.fetch(:symbolKind) end |
#tag_support ⇒ { valueSet: 1[]; }
The client supports tags on ‘SymbolInformation`. Clients supporting tags have to handle unknown tags gracefully.
37 38 39 |
# File 'lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb', line 37 def tag_support attributes.fetch(:tagSupport) end |
#to_hash ⇒ Object
43 44 45 |
# File 'lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb', line 43 def to_hash attributes end |
#to_json(*args) ⇒ Object
47 48 49 |
# File 'lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb', line 47 def to_json(*args) to_hash.to_json(*args) end |