Sdílet prostřednictvím


IAsyncSuggestedActionsSource Interface

Definition

Extends ISuggestedActionsSource2 to add an ability to asynchronously stream the SuggestedActionSets.

public interface class IAsyncSuggestedActionsSource : IDisposable, Microsoft::VisualStudio::Language::Intellisense::ISuggestedActionsSource2, Microsoft::VisualStudio::Utilities::ITelemetryIdProvider<Guid>
public interface IAsyncSuggestedActionsSource : IDisposable, Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionsSource2, Microsoft.VisualStudio.Utilities.ITelemetryIdProvider<Guid>
type IAsyncSuggestedActionsSource = interface
    interface ISuggestedActionsSource2
    interface ISuggestedActionsSource
    interface IDisposable
    interface ITelemetryIdProvider<Guid>
Public Interface IAsyncSuggestedActionsSource
Implements IDisposable, ISuggestedActionsSource2, ITelemetryIdProvider(Of Guid)
Implements

Remarks

Besides standard attributes, the providing ISuggestedActionsSourceProvider should be decorated with one or more SuggestedActionPriorityAttributes to enable support for deterministic ordering with respect to other ISuggestedActionsSourceProviders.

Methods

GetSuggestedActionCategoriesAsync(ISuggestedActionCategorySet, SnapshotSpan, CancellationToken)

Gets a ISuggestedActionCategorySet which are known to have ISuggestedActions which are applicable to the span of text defined by range.

(Inherited from ISuggestedActionsSource2)
GetSuggestedActions(ISuggestedActionCategorySet, SnapshotSpan, CancellationToken)

Synchronously returns a list of suggested actions for a given span of text.

(Inherited from ISuggestedActionsSource)
GetSuggestedActionsAsync(ISuggestedActionCategorySet, SnapshotSpan, ImmutableArray<ISuggestedActionSetCollector>, CancellationToken)

Allows IAsyncSuggestedActionsSource to provide suggested actions for a given span of text by passing SuggestedActionSets into suggestedActionSetCollectors

HasSuggestedActionsAsync(ISuggestedActionCategorySet, SnapshotSpan, CancellationToken)

Asynchronously indicates whether this provider can provide any suggested actions for a given span of text in the ITextBuffer.

(Inherited from ISuggestedActionsSource)
TryGetTelemetryId(TId)

Tries to get a unique ID for telemetry purposes.

(Inherited from ITelemetryIdProvider<TId>)

Events

SuggestedActionsChanged

Raised when a list of available suggested actions have changed.

(Inherited from ISuggestedActionsSource)

Applies to