IAsyncCompletionItemManager.UpdateCompletionListAsync Method

Definition

This method is called before completion is about to appear, on subsequent typing events and when user toggles completion filters. session tracks user user's input tracked with ApplicableToSpan. data provides applicable Snapshot and and SelectedFilterss that indicate user's filter selection.

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

Parameters

data
AsyncCompletionSessionDataSnapshot

Contains properties applicable at the time this method is invoked.

token
CancellationToken

Cancellation token that may interrupt this operation

Returns

Instance of FilteredCompletionModel that contains completion items to render, filters to display and recommended item to select

Applies to