ISuggestedAction Interface
A action that is suggested as possible. Examples of such suggested actions include quick fixes for syntax errors, suggestions aimed on improving code quality or refactoring. Suggested actions are provided by ISuggestedActionsSource instances and represented by a LightBulb presenter as menu items in a LightBulb dropdown menu.
Assembly: Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)
| Name | Description | |
|---|---|---|
![]() | DisplayText | Gets the localized text representing the suggested action. This property should never be null. |
![]() | HasActionSets | Determines whether this action has nested suggested action sets. |
![]() | HasPreview | Determines whether this suggested action can provide a preview via GetPreviewAsync(CancellationToken)./// </summary>/// <remarks> </remarks> |
![]() | IconAutomationText | Gets the text to be used as the automation name for the icon when it's displayed. For purposes of accessibility, this property should not be null if the icon is specified. |
![]() | IconMoniker | Gets an optional icon representing the suggested action or null if this suggested action doesn't have an icon. |
![]() | InputGestureText | Gets the text describing an input gesture that will apply the suggested action. |
| Name | Description | |
|---|---|---|
![]() | Dispose() | (Inherited from IDisposable.) |
![]() | GetActionSetsAsync(CancellationToken) | |
![]() | GetPreviewAsync(CancellationToken) | |
![]() | Invoke(CancellationToken) | Invokes the suggested action. |
![]() | TryGetTelemetryId(Tid) | (Inherited from ITelemetryIdProvider<Tid>.) |

