Share via


IAsyncCompletionItemManager.SortCompletionListAsync 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<System::Collections::Immutable::ImmutableArray<Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::CompletionItem ^>> ^ SortCompletionListAsync(Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::IAsyncCompletionSession ^ session, Microsoft::VisualStudio::Language::Intellisense::AsyncCompletion::Data::AsyncCompletionSessionInitialDataSnapshot ^ data, System::Threading::CancellationToken token);
public System.Threading.Tasks.Task<System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItem>> SortCompletionListAsync (Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.IAsyncCompletionSession session, Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.AsyncCompletionSessionInitialDataSnapshot data, System.Threading.CancellationToken token);
abstract member SortCompletionListAsync : Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.IAsyncCompletionSession * Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.AsyncCompletionSessionInitialDataSnapshot * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.Data.CompletionItem>>
Public Function SortCompletionListAsync (session As IAsyncCompletionSession, data As AsyncCompletionSessionInitialDataSnapshot, token As CancellationToken) As Task(Of ImmutableArray(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 ImmutableArray of CompletionItem that will be subsequently passed to UpdateCompletionListAsync(IAsyncCompletionSession, AsyncCompletionSessionDataSnapshot, CancellationToken)

Applies to