IAsyncCompletionItemManager.SortCompletionListAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- session
- IAsyncCompletionSession
The active IAsyncCompletionSession. See TextView
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)