ILanguageClientCompletionProvider.RequestCompletions(CompletionParams, Func<CompletionParams,Task<Object>>) ILanguageClientCompletionProvider.RequestCompletions(CompletionParams, Func<CompletionParams,Task<Object>>) ILanguageClientCompletionProvider.RequestCompletions(CompletionParams, Func<CompletionParams,Task<Object>>) ILanguageClientCompletionProvider.RequestCompletions(CompletionParams, Func<CompletionParams,Task<Object>>) Method

Definition

Intercepts calls to the server for 'textDocument/completion' request.

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

Parameters

param
CompletionParams CompletionParams CompletionParams CompletionParams

Parameter to be sent for request.

sendRequest
Func<CompletionParams,Task<Object>>

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 object representing completion items. Can be Newtonsoft.Json.Linq.JObject or an array of CompletionItem or CompletionList.

Applies to