ISuggestedActionsSource3.GetSuggestedActions Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Synchronously returns a list of suggested actions for a given span of text.
public:
System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Language::Intellisense::SuggestedActionSet ^> ^ GetSuggestedActions(Microsoft::VisualStudio::Language::Intellisense::ISuggestedActionCategorySet ^ requestedActionCategories, Microsoft::VisualStudio::Text::SnapshotSpan range, Microsoft::VisualStudio::Utilities::IUIThreadOperationContext ^ operationContext);
public System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Language.Intellisense.SuggestedActionSet> GetSuggestedActions (Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet requestedActionCategories, Microsoft.VisualStudio.Text.SnapshotSpan range, Microsoft.VisualStudio.Utilities.IUIThreadOperationContext operationContext);
abstract member GetSuggestedActions : Microsoft.VisualStudio.Language.Intellisense.ISuggestedActionCategorySet * Microsoft.VisualStudio.Text.SnapshotSpan * Microsoft.VisualStudio.Utilities.IUIThreadOperationContext -> seq<Microsoft.VisualStudio.Language.Intellisense.SuggestedActionSet>
Public Function GetSuggestedActions (requestedActionCategories As ISuggestedActionCategorySet, range As SnapshotSpan, operationContext As IUIThreadOperationContext) As IEnumerable(Of SuggestedActionSet)
Parameters
- requestedActionCategories
- ISuggestedActionCategorySet
A set of suggested action categories requested.
- range
- SnapshotSpan
A span of text in the ITextBuffer over which to return suggested actions.
- operationContext
- IUIThreadOperationContext
A context of executing this operation on the UI thread, which allows to provide custom operation description and progress information.
Returns
A list of suggested actions or null if no actions can be suggested for a given span of text in the ITextBuffer
Remarks
This method supersedes GetSuggestedActions(ISuggestedActionCategorySet, SnapshotSpan, CancellationToken) and is guaranteed to be called instead of that.