class LanguageServer::Protocol::Interface::WorkspaceSymbolClientCapabilities

Attributes

attributes[R]

Public Class Methods

new(dynamic_registration: nil, symbol_kind: nil, tag_support: nil, resolve_support: nil) click to toggle source
# File lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb, line 5
def initialize(dynamic_registration: nil, symbol_kind: nil, tag_support: nil, resolve_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[:resolveSupport] = resolve_support if resolve_support

  @attributes.freeze
end

Public Instance Methods

dynamic_registration() click to toggle source

Symbol request supports dynamic registration.

@return [boolean]

# File lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb, line 20
def dynamic_registration
  attributes.fetch(:dynamicRegistration)
end
resolve_support() click to toggle source

The client support partial workspace symbols. The client will send the request ‘workspaceSymbol/resolve` to the server to resolve additional properties.

@return [{ properties: string[]; }]

# File lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb, line 48
def resolve_support
  attributes.fetch(:resolveSupport)
end
symbol_kind() click to toggle source

Specific capabilities for the ‘SymbolKind` in the `workspace/symbol` request.

@return [{ valueSet?: SymbolKind[]; }]

# File lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb, line 29
def symbol_kind
  attributes.fetch(:symbolKind)
end
tag_support() click to toggle source

The client supports tags on ‘SymbolInformation` and `WorkspaceSymbol`. Clients supporting tags have to handle unknown tags gracefully.

@return [{ valueSet: 1[]; }]

# File lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb, line 38
def tag_support
  attributes.fetch(:tagSupport)
end
to_hash() click to toggle source
# File lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb, line 54
def to_hash
  attributes
end
to_json(*args) click to toggle source
# File lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb, line 58
def to_json(*args)
  to_hash.to_json(*args)
end