IAsyncSuggestedActionsSource.GetSuggestedActionsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
- suggestedActionSetCollectors
- ImmutableArray<ISuggestedActionSetCollector>
Gets SuggestedActionSets using Add(SuggestedActionSet) and Complete().
- cancellationToken
- CancellationToken
Faciliates cancellation.
Returns
Remarks
This method can be invoked from any thread.