Compartilhar via


IAsyncCompletionItemManager2 Interface

Definition

Represents a class that filters and sorts available CompletionItems given the current state of the editor. It also declares which completion filters are available for the returned subset of CompletionItems. All methods are called on background thread.

public interface IAsyncCompletionItemManager2 : Microsoft.VisualStudio.Language.Intellisense.AsyncCompletion.IAsyncCompletionItemManager
type IAsyncCompletionItemManager2 = interface
    interface IAsyncCompletionItemManager
Public Interface IAsyncCompletionItemManager2
Implements IAsyncCompletionItemManager
Implements

Remarks

Instances of this class should be created by IAsyncCompletionItemManagerProvider, which is a MEF part.

Methods

SortCompletionItemListAsync(IAsyncCompletionSession, AsyncCompletionSessionInitialDataSnapshot, CancellationToken)

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

SortCompletionListAsync(IAsyncCompletionSession, AsyncCompletionSessionInitialDataSnapshot, CancellationToken)

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

(Inherited from IAsyncCompletionItemManager)
UpdateCompletionListAsync(IAsyncCompletionSession, AsyncCompletionSessionDataSnapshot, CancellationToken)

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.

(Inherited from IAsyncCompletionItemManager)

Applies to