ILightBulbBroker2.GetSuggestedActionCategoriesAsync Method

Definition

Overloads

GetSuggestedActionCategoriesAsync(ISuggestedActionCategorySet, ITextView, CancellationToken)

Asynchronously gets an ISuggestedActionCategorySet containing all categories with applicable actions.

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

Asynchronously gets an ISuggestedActionCategorySet containing all categories with applicable actions.

GetSuggestedActionCategoriesAsync(ISuggestedActionCategorySet, ITextView, CancellationToken)

Asynchronously gets an ISuggestedActionCategorySet containing all categories with applicable actions.

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

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

Task<ISuggestedActionCategorySet>

A task that returns the ISuggestedActionCategorySet of categories with applicable actions.

Applies to

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

Asynchronously gets an ISuggestedActionCategorySet containing all categories with applicable actions.

public:
 System::Threading::Tasks::Task<Microsoft::VisualStudio::Language::Intellisense::ISuggestedActionCategorySet ^> ^ GetSuggestedActionCategoriesAsync(Microsoft::VisualStudio::Language::Intellisense::ISuggestedActionCategorySet ^ requestedActionCategories, Microsoft::VisualStudio::Text::Editor::ITextView ^ textView, Microsoft::VisualStudio::Text::ITrackingPoint ^ triggerPoint, Microsoft::VisualStudio::Text::ITrackingSpan ^ trackingSpan, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet> GetSuggestedActionCategoriesAsync (Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet requestedActionCategories, Microsoft.VisualStudio.Text.Editor.ITextView textView, Microsoft.VisualStudio.Text.ITrackingPoint triggerPoint, Microsoft.VisualStudio.Text.ITrackingSpan trackingSpan, System.Threading.CancellationToken cancellationToken);
abstract member GetSuggestedActionCategoriesAsync : 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<Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet>
Public Function GetSuggestedActionCategoriesAsync (requestedActionCategories As ISuggestedActionCategorySet, textView As ITextView, triggerPoint As ITrackingPoint, trackingSpan As ITrackingSpan, cancellationToken As CancellationToken) As Task(Of ISuggestedActionCategorySet)

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.

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.

trackingSpan
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

Cancellation token to cancel this asynchronous operation.

Returns

Task<ISuggestedActionCategorySet>

A task that returns the ISuggestedActionCategorySet of categories with applicable actions.

Applies to