次の方法で共有


ISuggestedActionsSource2 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 ISuggestedActionsSource2 : IDisposable, Microsoft::VisualStudio::Language::Intellisense::ISuggestedActionsSource, Microsoft::VisualStudio::Utilities::ITelemetryIdProvider<Guid>
[System.CLSCompliant(false)]
public interface ISuggestedActionsSource2 : IDisposable, Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionsSource, Microsoft.VisualStudio.Utilities.ITelemetryIdProvider<Guid>
public interface ISuggestedActionsSource2 : IDisposable, Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionsSource, Microsoft.VisualStudio.Utilities.ITelemetryIdProvider<Guid>
[<System.CLSCompliant(false)>]
type ISuggestedActionsSource2 = interface
    interface ISuggestedActionsSource
    interface IDisposable
    interface ITelemetryIdProvider<Guid>
type ISuggestedActionsSource2 = interface
    interface ISuggestedActionsSource
    interface IDisposable
    interface ITelemetryIdProvider<Guid>
Public Interface ISuggestedActionsSource2
Implements IDisposable, ISuggestedActionsSource, ITelemetryIdProvider(Of Guid)
Derived
Attributes
Implements

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.

GetSuggestedActions(ISuggestedActionCategorySet, SnapshotSpan, CancellationToken)

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

(Inherited from ISuggestedActionsSource)
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