IAsyncCompletionItemManager 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 class IAsyncCompletionItemManager
public interface IAsyncCompletionItemManager
type IAsyncCompletionItemManager = interface
Public Interface IAsyncCompletionItemManager
Derived

Remarks

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

Methods

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

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.

Applies to