9 instantiations of SuggestedActionSet
Microsoft.CodeAnalysis.LanguageServer.Protocol (9)
Features\Suggestions\UnifiedSuggestedActionsSource.cs (9)
149var set = new SuggestedActionSet( 291var bulkConfigurationSet = new SuggestedActionSet( 321var wrappingSet = new SuggestedActionSet( 387sets.Add(new SuggestedActionSet( 513return new SuggestedActionSet( 532var set = new SuggestedActionSet( 680=> new(set.CategoryName, set.Actions, set.Title, priority, set.ApplicableToSpan); 710return new SuggestedActionSet( 750: new SuggestedActionSet(set.CategoryName, actions.ToImmutable(), set.Title, set.Priority, set.ApplicableToSpan);
57 references to SuggestedActionSet
Microsoft.CodeAnalysis.EditorFeatures (3)
Suggestions\SuggestedActionsSource_Async.cs (3)
220async Task<ImmutableArray<CodeAnalysis.Suggestions.SuggestedActionSet>> GetCodeFixesAsync() 236async Task<ImmutableArray<CodeAnalysis.Suggestions.SuggestedActionSet>> GetRefactoringsAsync() 268VisualStudio.Language.Intellisense.SuggestedActionSet ConvertToSuggestedActionSet(CodeAnalysis.Suggestions.SuggestedActionSet unifiedSuggestedActionSet, TextDocument originalDocument)
Microsoft.CodeAnalysis.LanguageServer.Protocol (54)
Features\Suggestions\SuggestedAction.cs (3)
62public ImmutableArray<SuggestedActionSet> NestedActionSets { get; } 77ImmutableArray<SuggestedActionSet> nestedActionSets, 107ImmutableArray<SuggestedActionSet> nestedActionSets)
Features\Suggestions\UnifiedSuggestedActionSetComparer.cs (3)
13internal sealed class UnifiedSuggestedActionSetComparer : IComparer<SuggestedActionSet> 52public int Compare(SuggestedActionSet x, SuggestedActionSet y)
Features\Suggestions\UnifiedSuggestedActionsSource.cs (41)
37public static async ValueTask<ImmutableArray<SuggestedActionSet>> GetFilterAndOrderCodeFixesAsync( 63private static async Task<ImmutableArray<SuggestedActionSet>> OrganizeFixesAsync( 149var set = new SuggestedActionSet( 257/// Priority for all <see cref="SuggestedActionSet"/>s containing fixes is set to <see 259/// cref="SuggestedActionSet"/> only contains suppression fixes - the priority of such <see 260/// cref="SuggestedActionSet"/>s is set to <see cref="CodeActionPriority.Lowest"/> so that suppression 263private static ImmutableArray<SuggestedActionSet> PrioritizeFixGroups( 268using var _1 = ArrayBuilder<SuggestedActionSet>.GetInstance(out var nonSuppressionSets); 269using var _2 = ArrayBuilder<SuggestedActionSet>.GetInstance(out var suppressionSets); 291var bulkConfigurationSet = new SuggestedActionSet( 321var wrappingSet = new SuggestedActionSet( 333static (TextSpan? span, string category) CombineSpansAndCategory(ArrayBuilder<SuggestedActionSet> sets) 342foreach (var set in sets) 379ArrayBuilder<SuggestedActionSet> sets) 420public static async Task<ImmutableArray<SuggestedActionSet>> GetFilterAndOrderCodeRefactoringsAsync( 437var orderedRefactorings = new FixedSizeArrayBuilder<SuggestedActionSet>(filteredRefactorings.Length); 440var orderedRefactoring = await OrganizeRefactoringsAsync(document, selection, refactoring, cancellationToken).ConfigureAwait(false); 486/// Priority for all <see cref="SuggestedActionSet"/>s containing refactorings is set to 490private static async Task<SuggestedActionSet> OrganizeRefactoringsAsync( 532var set = new SuggestedActionSet( 607public static ImmutableArray<SuggestedActionSet> FilterAndOrderActionSets( 608ImmutableArray<SuggestedActionSet> fixes, 609ImmutableArray<SuggestedActionSet> refactorings, 628private static ImmutableArray<SuggestedActionSet> GetInitiallyOrderedActionSets( 630ImmutableArray<SuggestedActionSet> fixes, 631ImmutableArray<SuggestedActionSet> refactorings) 672private static ImmutableArray<SuggestedActionSet> OrderActionSets( 673ImmutableArray<SuggestedActionSet> actionSets, TextSpan? selectionOpt) 678private static SuggestedActionSet WithPriority( 679SuggestedActionSet set, CodeActionPriority priority) 682private static ImmutableArray<SuggestedActionSet> InlineActionSetsIfDesirable( 683ImmutableArray<SuggestedActionSet> actionSets, 694private static SuggestedActionSet InlineActions(SuggestedActionSet actionSet) 718private static ImmutableArray<SuggestedActionSet> FilterActionSetsByTitle( 719ImmutableArray<SuggestedActionSet> allActionSets) 721using var resultDisposer = ArrayBuilder<SuggestedActionSet>.GetInstance(out var result); 724foreach (var set in allActionSets) 726var filteredSet = FilterActionSetByTitle(set, seenTitles); 736private static SuggestedActionSet? FilterActionSetByTitle(SuggestedActionSet set, HashSet<string> seenTitles)
Handler\CodeActions\CodeActionHelpers.cs (7)
56foreach (var set in actionSets) 78foreach (var set in actionSets) 154foreach (var actionSet in suggestedAction.NestedActionSets) 262foreach (var nestedActionSet in suggestedAction.NestedActionSets) 323foreach (var set in actionSets) 354foreach (var actionSet in suggestedAction.NestedActionSets) 381private static async ValueTask<ImmutableArray<SuggestedActionSet>> GetActionSetsAsync(