Partilhar via


IAsyncCompletionItemManagerProvider Interface

Definition

Provides instances of IAsyncCompletionItemManager which filters and sorts available CompletionItems given the current state of the editor.

public interface class IAsyncCompletionItemManagerProvider
public interface IAsyncCompletionItemManagerProvider
type IAsyncCompletionItemManagerProvider = interface
Public Interface IAsyncCompletionItemManagerProvider

Examples

[Export(typeof(IAsyncCompletionItemManagerProvider))]
[Name(nameof(MyCompletionItemManagerProvider))]
[ContentType("text")]
[TextViewRoles(PredefinedTextViewRoles.Editable)]
[Order(Before = "OtherCompletionItemManager")]
public class MyCompletionItemManagerProvider : IAsyncCompletionItemManagerProvider

Remarks

This is a MEF component and should be exported with [ContentType] and [Name] attributes and optional [Order] and [TextViewRoles] attributes. An instance of IAsyncCompletionItemManager is selected first by matching ContentType with content type of the TextBuffer, and then by Order. Only one IAsyncCompletionItemManager is used in a given view.

[Export(typeof(IAsyncCompletionItemManagerProvider))]
[Name(nameof(MyCompletionItemManagerProvider))]
[ContentType("text")]
[TextViewRoles(PredefinedTextViewRoles.Editable)]
[Order(Before = "OtherCompletionItemManager")]
public class MyCompletionItemManagerProvider : IAsyncCompletionItemManagerProvider

Methods

GetOrCreate(ITextView)

Creates an instance of IAsyncCompletionItemManager for the specified ITextView. Called on the UI thread.

Applies to