共用方式為


ISuggestedActionsSource Interface

Definition

Important

This API is not CLS-compliant.

Represents a provider of suggested actions for a span of text in a ITextBuffer. ISuggestedActionsSource instances are created by ISuggestedActionsSourceProvider MEF components matching text buffer's content type.

public interface class ISuggestedActionsSource : IDisposable, Microsoft::VisualStudio::Utilities::ITelemetryIdProvider<Guid>
[System.CLSCompliant(false)]
public interface ISuggestedActionsSource : IDisposable, Microsoft.VisualStudio.Utilities.ITelemetryIdProvider<Guid>
public interface ISuggestedActionsSource : IDisposable, Microsoft.VisualStudio.Utilities.ITelemetryIdProvider<Guid>
[<System.CLSCompliant(false)>]
type ISuggestedActionsSource = interface
    interface IDisposable
    interface ITelemetryIdProvider<Guid>
type ISuggestedActionsSource = interface
    interface IDisposable
    interface ITelemetryIdProvider<Guid>
Public Interface ISuggestedActionsSource
Implements IDisposable, ITelemetryIdProvider(Of Guid)
Derived
Attributes
Implements

Methods

GetSuggestedActions(ISuggestedActionCategorySet, SnapshotSpan, CancellationToken)

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

HasSuggestedActionsAsync(ISuggestedActionCategorySet, SnapshotSpan, CancellationToken)

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

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.

Applies to