Sdílet prostřednictvím


ISuggestedActionsSource.GetSuggestedActions Method

Definition

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

public:
 System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Language::Intellisense::SuggestedActionSet ^> ^ GetSuggestedActions(Microsoft::VisualStudio::Language::Intellisense::ISuggestedActionCategorySet ^ requestedActionCategories, Microsoft::VisualStudio::Text::SnapshotSpan range, System::Threading::CancellationToken cancellationToken);
public System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Language.Intellisense.SuggestedActionSet> GetSuggestedActions (Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet requestedActionCategories, Microsoft.VisualStudio.Text.SnapshotSpan range, System.Threading.CancellationToken cancellationToken);
abstract member GetSuggestedActions : Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet * Microsoft.VisualStudio.Text.SnapshotSpan * System.Threading.CancellationToken -> seq<Microsoft.VisualStudio.Language.Intellisense.SuggestedActionSet>
Public Function GetSuggestedActions (requestedActionCategories As ISuggestedActionCategorySet, range As SnapshotSpan, cancellationToken As CancellationToken) As IEnumerable(Of SuggestedActionSet)

Parameters

requestedActionCategories
ISuggestedActionCategorySet

A set of suggested action categories requested.

range
SnapshotSpan

A span of text in the ITextBuffer over which to return suggested actions.

cancellationToken
CancellationToken

A cancellation token that allows to cancel getting list of suggested actions.

Returns

A list of suggested actions or null if no actions can be suggested for a given span of text in the ITextBuffer

Applies to