Partilhar via


IAsyncCompletionSourceProvider Interface

Definition

Provides instances of IAsyncCompletionSource which provides CompletionItems and other information relevant to the completion feature at a specific SnapshotPoint

public interface class IAsyncCompletionSourceProvider
public interface IAsyncCompletionSourceProvider
type IAsyncCompletionSourceProvider = interface
Public Interface IAsyncCompletionSourceProvider

Examples

[Export(typeof(IAsyncCompletionSourceProvider))]
[Name(nameof(MyCompletionSource))]
[ContentType("text")]
[TextViewRole(PredefinedTextViewRoles.Editable)]
public class MyCompletionSourceProvider : IAsyncCompletionSourceProvider

Remarks

This is a MEF component and should be exported with [ContentType] and [Name] attributes and optional [TextViewRoles] attribute. Completion feature will request data from all exported IAsyncCompletionSources whose ContentType matches content type of any buffer in the completion's trigger location.

Methods

GetOrCreate(ITextView)

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

Applies to