Share via


IAsyncCompletionItemManager2.SortCompletionItemListAsync Method

Definition

This method is first called before completion is about to appear. The result of this method will be used in subsequent invocations of UpdateCompletionListAsync(IAsyncCompletionSession, AsyncCompletionSessionDataSnapshot, CancellationToken)session tracks user user's input tracked with ApplicableToSpan. data provides applicable Snapshot and

public System.Threading.Tasks.Task<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionList<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItem>> SortCompletionItemListAsync (Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.IAsyncCompletionSession session, Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.AsyncCompletionSessionInitialDataSnapshot data, System.Threading.CancellationToken token);
abstract member SortCompletionItemListAsync : Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.IAsyncCompletionSession * Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.AsyncCompletionSessionInitialDataSnapshot * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionList<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItem>>
Public Function SortCompletionItemListAsync (session As IAsyncCompletionSession, data As AsyncCompletionSessionInitialDataSnapshot, token As CancellationToken) As Task(Of CompletionList(Of CompletionItem))

Parameters

data
AsyncCompletionSessionInitialDataSnapshot

Contains properties applicable at the time this method is invoked.

token
CancellationToken

Cancellation token that may interrupt this operation

Returns

Sorted CompletionList<T> that will be subsequently passed to UpdateCompletionListAsync(IAsyncCompletionSession, AsyncCompletionSessionDataSnapshot, CancellationToken)

Applies to