Share via


ILanguageClientCompletionProvider.RequestCompletions Method

Definition

Overloads

RequestCompletions(CompletionParams, Func<CompletionParams,Task<Nullable<SumType<CompletionItem[],CompletionList>>>>)

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

RequestCompletions(CompletionParams, Func<CompletionParams,Task<Object>>)

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

RequestCompletions(CompletionParams, Func<CompletionParams,Task<Nullable<SumType<CompletionItem[],CompletionList>>>>)

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

public:
 System::Threading::Tasks::Task<Nullable<Microsoft::VisualStudio::LanguageServer::Protocol::SumType<cli::array <Microsoft::VisualStudio::LanguageServer::Protocol::CompletionItem ^> ^, Microsoft::VisualStudio::LanguageServer::Protocol::CompletionList ^>>> ^ RequestCompletions(Microsoft::VisualStudio::LanguageServer::Protocol::CompletionParams ^ param, Func<Microsoft::VisualStudio::LanguageServer::Protocol::CompletionParams ^, System::Threading::Tasks::Task<Nullable<Microsoft::VisualStudio::LanguageServer::Protocol::SumType<cli::array <Microsoft::VisualStudio::LanguageServer::Protocol::CompletionItem ^> ^, Microsoft::VisualStudio::LanguageServer::Protocol::CompletionList ^>>> ^> ^ sendRequest);
public System.Threading.Tasks.Task<Microsoft.VisualStudio.LanguageServer.Protocol.SumType<Microsoft.VisualStudio.LanguageServer.Protocol.CompletionItem[],Microsoft.VisualStudio.LanguageServer.Protocol.CompletionList>?> RequestCompletions (Microsoft.VisualStudio.LanguageServer.Protocol.CompletionParams param, Func<Microsoft.VisualStudio.LanguageServer.Protocol.CompletionParams,System.Threading.Tasks.Task<Microsoft.VisualStudio.LanguageServer.Protocol.SumType<Microsoft.VisualStudio.LanguageServer.Protocol.CompletionItem[],Microsoft.VisualStudio.LanguageServer.Protocol.CompletionList>?>> sendRequest);
abstract member RequestCompletions : Microsoft.VisualStudio.LanguageServer.Protocol.CompletionParams * Func<Microsoft.VisualStudio.LanguageServer.Protocol.CompletionParams, System.Threading.Tasks.Task<Nullable<Microsoft.VisualStudio.LanguageServer.Protocol.SumType<Microsoft.VisualStudio.LanguageServer.Protocol.CompletionItem[], Microsoft.VisualStudio.LanguageServer.Protocol.CompletionList>>>> -> System.Threading.Tasks.Task<Nullable<Microsoft.VisualStudio.LanguageServer.Protocol.SumType<Microsoft.VisualStudio.LanguageServer.Protocol.CompletionItem[], Microsoft.VisualStudio.LanguageServer.Protocol.CompletionList>>>
Public Function RequestCompletions (param As CompletionParams, sendRequest As Func(Of CompletionParams, Task(Of Nullable(Of SumType(Of CompletionItem(), CompletionList))))) As Task(Of Nullable(Of SumType(Of CompletionItem(), CompletionList)))

Parameters

param
CompletionParams

Parameter to be sent for request.

sendRequest
Func<CompletionParams,Task<Nullable<SumType<CompletionItem[],CompletionList>>>>

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

RequestCompletions(CompletionParams, Func<CompletionParams,Task<Object>>)

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

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