다음을 통해 공유


ILanguageClientCompletionProvider.ResolveCompletion Method

Definition

Intercepts calls to the server for 'completion/resolve" request.

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

Parameters

item
CompletionItem

The completion item to resolve.

sendRequest
Func<CompletionItem,Task<CompletionItem>>

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 resolved completion item.

Applies to