次の方法で共有


IAsyncSuggestedActionsSource.GetSuggestedActionsAsync Method

Definition

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

public:
 System::Threading::Tasks::Task ^ GetSuggestedActionsAsync(Microsoft::VisualStudio::Language::Intellisense::ISuggestedActionCategorySet ^ requestedActionCategories, Microsoft::VisualStudio::Text::SnapshotSpan range, System::Collections::Immutable::ImmutableArray<Microsoft::VisualStudio::Language::Intellisense::ISuggestedActionSetCollector ^> suggestedActionSetCollectors, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task GetSuggestedActionsAsync (Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet requestedActionCategories, Microsoft.VisualStudio.Text.SnapshotSpan range, System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionSetCollector> suggestedActionSetCollectors, System.Threading.CancellationToken cancellationToken);
abstract member GetSuggestedActionsAsync : Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet * Microsoft.VisualStudio.Text.SnapshotSpan * System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionSetCollector> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function GetSuggestedActionsAsync (requestedActionCategories As ISuggestedActionCategorySet, range As SnapshotSpan, suggestedActionSetCollectors As ImmutableArray(Of ISuggestedActionSetCollector), cancellationToken As CancellationToken) As Task

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

Faciliates cancellation.

Returns

Remarks

This method can be invoked from any thread.

Applies to