Share via


IAsyncLightBulbSession.PopulateWithDataAsync Method

Definition

Gets SuggestedActionSets through synchronous API and enqueues work to get SuggestedActionSets through the asynchronous API. Displays the received actions in the UI and communicates updates through the SuggestedActionsUpdated event.

public System.Threading.Tasks.Task<System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.SuggestedActionSet>> PopulateWithDataAsync (Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet? overrideRequestedActionCategories = default, Microsoft.VisualStudio.Utilities.IUIThreadOperationContext? operationContext = default);
abstract member PopulateWithDataAsync : Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet * Microsoft.VisualStudio.Utilities.IUIThreadOperationContext -> System.Threading.Tasks.Task<System.Collections.Immutable.ImmutableArray<Microsoft.VisualStudio.Language.Intellisense.SuggestedActionSet>>
Public Function PopulateWithDataAsync (Optional overrideRequestedActionCategories As ISuggestedActionCategorySet = Nothing, Optional operationContext As IUIThreadOperationContext = Nothing) As Task(Of ImmutableArray(Of SuggestedActionSet))

Parameters

overrideRequestedActionCategories
ISuggestedActionCategorySet

Set of suggested action categories to provide instead of ActionCategories.

operationContext
IUIThreadOperationContext

Supports cancellation and reporting progress

Returns

The SuggestedActionSets collected from all sources

Remarks

When no data is available, the ILightBulbSession dismisses. If CurrentStatus is already Completed and overrideRequestedActionCategories is unspecified, this will synchronously return a completed Task.

Applies to