ILightBulbBroker.HasSuggestedActionsAsync Method

Definition

Overloads

HasSuggestedActionsAsync(ISuggestedActionCategorySet, ITextView, CancellationToken)

Asynchronously determines whether any ISuggestedActions are associated with the current caret position in a given ITextView.

HasSuggestedActionsAsync(ISuggestedActionCategorySet, ITextView, ITrackingPoint, ITrackingSpan, CancellationToken)

Asynchronously determines whether any ISuggestedActions are associated with a given trigger point position and span in a given ITextView.

HasSuggestedActionsAsync(ISuggestedActionCategorySet, ITextView, CancellationToken)

Asynchronously determines whether any ISuggestedActions are associated with the current caret position in a given ITextView.

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

Parameters

requestedActionCategories
ISuggestedActionCategorySet

A set of suggested action categories requested.

textView
ITextView

The ITextView over which to determine whether any ISuggestedActions are associated with the current caret position.

cancellationToken
CancellationToken

Cancellation token to cancel this asynchronous operation.

Returns

A task that returns true if any ISuggestedActions are associated with the current caret position in a given ITextView, false otherwise.

Applies to

HasSuggestedActionsAsync(ISuggestedActionCategorySet, ITextView, ITrackingPoint, ITrackingSpan, CancellationToken)

Asynchronously determines whether any ISuggestedActions are associated with a given trigger point position and span in a given ITextView.

public:
 System::Threading::Tasks::Task<bool> ^ HasSuggestedActionsAsync(Microsoft::VisualStudio::Language::Intellisense::ISuggestedActionCategorySet ^ requestedActionCategories, Microsoft::VisualStudio::Text::Editor::ITextView ^ textView, Microsoft::VisualStudio::Text::ITrackingPoint ^ triggerPoint, Microsoft::VisualStudio::Text::ITrackingSpan ^ triggerSpan, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<bool> HasSuggestedActionsAsync (Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet requestedActionCategories, Microsoft.VisualStudio.Text.Editor.ITextView textView, Microsoft.VisualStudio.Text.ITrackingPoint triggerPoint, Microsoft.VisualStudio.Text.ITrackingSpan triggerSpan, System.Threading.CancellationToken cancellationToken);
abstract member HasSuggestedActionsAsync : Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet * Microsoft.VisualStudio.Text.Editor.ITextView * Microsoft.VisualStudio.Text.ITrackingPoint * Microsoft.VisualStudio.Text.ITrackingSpan * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function HasSuggestedActionsAsync (requestedActionCategories As ISuggestedActionCategorySet, textView As ITextView, triggerPoint As ITrackingPoint, triggerSpan As ITrackingSpan, cancellationToken As CancellationToken) As Task(Of Boolean)

Parameters

requestedActionCategories
ISuggestedActionCategorySet

A set of suggested action categories requested.

textView
ITextView

The ITextView over which to determine whether any ISuggestedActions are associated
with a given trigger point position and span.

triggerPoint
ITrackingPoint

The ITrackingPoint in the text buffer at which to determine whether any ISuggestedActions are associated with a given point position and span in a given ITextView.

triggerSpan
ITrackingSpan

The ITrackingSpan in the text buffer for which to determine whether any ISuggestedActions are associated with a given trigger point position and span in a given ITextView.

cancellationToken
CancellationToken

Returns

A task that returns true if any ISuggestedActions are associated with the current caret position in a given ITextView, false otherwise.

Applies to