ISuggestedActionsSourceProvider Interface

Definition

Important

This API is not CLS-compliant.

Defines a provider of a suggested actions source.

public interface class ISuggestedActionsSourceProvider
public interface class ISuggestedActionsSourceProvider
__interface ISuggestedActionsSourceProvider
[System.CLSCompliant(false)]
public interface ISuggestedActionsSourceProvider
public interface ISuggestedActionsSourceProvider
[<System.CLSCompliant(false)>]
type ISuggestedActionsSourceProvider = interface
type ISuggestedActionsSourceProvider = interface
Public Interface ISuggestedActionsSourceProvider
Attributes

Remarks

This is a MEF component part, and should be exported with the following attribute:

[Export(typeof(ISuggestedActionsSourceProvider))]
[Order]
[Name]
[ContentType]

If this component returns an instance of IAsyncSuggestedActionsSource, then it should be exported with one or more SuggestedActionPriorityAttributes, for example:

[Priority(DefaultOrderings.Default)]

. You must specify the ContentType so that the source provider creates sources for buffers of content types that it recognizes, and Order to specify the order in which the sources (excluding IAsyncSuggestedActionsSource) are called. You must specify one or more Priority to ensure deterministic ordering of actions (if using IAsyncSuggestedActionsSource).

Methods

CreateSuggestedActionsSource(ITextView, ITextBuffer)

Creates suggested actions source for a given text buffer.

Applies to