ILanguageClientExecuteCommandProvider.ExecuteCommand Method

Definition

Intercepts calls for the 'workspace/executeCommand' request.

public:
 System::Threading::Tasks::Task ^ ExecuteCommand(Microsoft::VisualStudio::LanguageServer::Protocol::ExecuteCommandParams ^ param, Func<Microsoft::VisualStudio::LanguageServer::Protocol::ExecuteCommandParams ^, System::Threading::Tasks::Task ^> ^ sendRequest);
public System.Threading.Tasks.Task ExecuteCommand (Microsoft.VisualStudio.LanguageServer.Protocol.ExecuteCommandParams param, Func<Microsoft.VisualStudio.LanguageServer.Protocol.ExecuteCommandParams,System.Threading.Tasks.Task> sendRequest);
abstract member ExecuteCommand : Microsoft.VisualStudio.LanguageServer.Protocol.ExecuteCommandParams * Func<Microsoft.VisualStudio.LanguageServer.Protocol.ExecuteCommandParams, System.Threading.Tasks.Task> -> System.Threading.Tasks.Task
Public Function ExecuteCommand (param As ExecuteCommandParams, sendRequest As Func(Of ExecuteCommandParams, Task)) As Task

Parameters

param
ExecuteCommandParams

Parameter to be sent for request.

sendRequest
Func<ExecuteCommandParams,Task>

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

A Task that completes once the command has been processed

Applies to