resolveWorkspaceSymbol

abstract var resolveWorkspaceSymbol: (symbol: T, token: CancellationToken) -> ProviderResult<T>?(source)

Given a symbol fill in its location. This method is called whenever a symbol is selected in the UI. Providers can implement this method and return incomplete symbols from {@linkcode WorkspaceSymbolProvider.provideWorkspaceSymbols provideWorkspaceSymbols} which often helps to improve performance.

Parameters

symbol

The symbol that is to be resolved. Guaranteed to be an instance of an object returned from an earlier call to provideWorkspaceSymbols.

token

A cancellation token.