Interface WorkspaceSymbolProvider

Shared service for handling workspace symbols requests.

interface WorkspaceSymbolProvider {
    getSymbols(params: WorkspaceSymbolParams, cancelToken?: CancellationToken): MaybePromise<WorkspaceSymbol[]>;
    resolveSymbol?(symbol: WorkspaceSymbol, cancelToken?: CancellationToken): MaybePromise<WorkspaceSymbol>;
}

Implemented by

Methods

  • Handle a workspace symbols request.

    Parameters

    • params: WorkspaceSymbolParams

      workspaces symbols request parameters

    • OptionalcancelToken: CancellationToken

      a cancellation token tha can be used to cancel the request

    Returns MaybePromise<WorkspaceSymbol[]>

    a list of workspace symbols

    OperationCancelled if cancellation is detected during execution

    ResponseError if an error is detected that should be sent as response to the client

  • Handle a resolve request for a workspace symbol.

    Parameters

    • symbol: WorkspaceSymbol

      the workspace symbol to resolve

    • OptionalcancelToken: CancellationToken

      a cancellation token tha can be used to cancel the request

    Returns MaybePromise<WorkspaceSymbol>

    the resolved workspace symbol

    OperationCancelled if cancellation is detected during execution

    ResponseError if an error is detected that should be sent as response to the client