Condividi tramite


ISuggestedActionsSource.HasSuggestedActionsAsync Method

Definition

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

public:
 System::Threading::Tasks::Task<bool> ^ HasSuggestedActionsAsync(Microsoft::VisualStudio::Language::Intellisense::ISuggestedActionCategorySet ^ requestedActionCategories, Microsoft::VisualStudio::Text::SnapshotSpan range, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<bool> HasSuggestedActionsAsync (Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet requestedActionCategories, Microsoft.VisualStudio.Text.SnapshotSpan range, System.Threading.CancellationToken cancellationToken);
abstract member HasSuggestedActionsAsync : Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet * Microsoft.VisualStudio.Text.SnapshotSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function HasSuggestedActionsAsync (requestedActionCategories As ISuggestedActionCategorySet, range As SnapshotSpan, cancellationToken As CancellationToken) As Task(Of Boolean)

Parameters

requestedActionCategories
ISuggestedActionCategorySet

A set of suggested action categories requested.

range
SnapshotSpan

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

cancellationToken
CancellationToken

A cancellation token that allows to cancel checking for suggested actions.

Returns

A Task instance that when completed returns true if any suggested actions can be provided or false otherwise.

Applies to