Share via


ILanguageClientWorkspaceSymbolProvider.RequestWorkspaceSymbols Method

Definition

Intercepts calls for the 'workspace/symbol' request.

public:
 System::Threading::Tasks::Task<cli::array <Microsoft::VisualStudio::LanguageServer::Protocol::SymbolInformation ^> ^> ^ RequestWorkspaceSymbols(Microsoft::VisualStudio::LanguageServer::Protocol::WorkspaceSymbolParams ^ param, Func<Microsoft::VisualStudio::LanguageServer::Protocol::WorkspaceSymbolParams ^, System::Threading::Tasks::Task<cli::array <Microsoft::VisualStudio::LanguageServer::Protocol::SymbolInformation ^> ^> ^> ^ sendRequest);
public System.Threading.Tasks.Task<Microsoft.VisualStudio.LanguageServer.Protocol.SymbolInformation[]> RequestWorkspaceSymbols (Microsoft.VisualStudio.LanguageServer.Protocol.WorkspaceSymbolParams param, Func<Microsoft.VisualStudio.LanguageServer.Protocol.WorkspaceSymbolParams,System.Threading.Tasks.Task<Microsoft.VisualStudio.LanguageServer.Protocol.SymbolInformation[]>> sendRequest);
abstract member RequestWorkspaceSymbols : Microsoft.VisualStudio.LanguageServer.Protocol.WorkspaceSymbolParams * Func<Microsoft.VisualStudio.LanguageServer.Protocol.WorkspaceSymbolParams, System.Threading.Tasks.Task<Microsoft.VisualStudio.LanguageServer.Protocol.SymbolInformation[]>> -> System.Threading.Tasks.Task<Microsoft.VisualStudio.LanguageServer.Protocol.SymbolInformation[]>
Public Function RequestWorkspaceSymbols (param As WorkspaceSymbolParams, sendRequest As Func(Of WorkspaceSymbolParams, Task(Of SymbolInformation()))) As Task(Of SymbolInformation())

Parameters

param
WorkspaceSymbolParams

Parameter to be sent for request.

sendRequest
Func<WorkspaceSymbolParams,Task<SymbolInformation[]>>

Function delegate which will send the request to the server. This delegate can be ignored and not invoked if the choice is to not send the request to the server. It must be invoked in this method if the choice is to send the request to the server.

Returns

An array of SymbolInformation.

Applies to