1 instantiation of UnifiedSuggestedActionSet
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\UnifiedSuggestions\UnifiedSuggestedActionsSource.cs (1)
712
=>
new
(set.OriginalSolution, set.CategoryName, set.Actions, set.Title, priority, set.ApplicableToSpan);
59 references to UnifiedSuggestedActionSet
Microsoft.CodeAnalysis.LanguageServer.Protocol (59)
Features\UnifiedSuggestions\UnifiedSuggestedActions\UnifiedCodeFixSuggestedAction.cs (2)
21
public
UnifiedSuggestedActionSet
? FixAllFlavors { get; }
29
UnifiedSuggestedActionSet
? fixAllFlavors)
Features\UnifiedSuggestions\UnifiedSuggestedActions\UnifiedCodeRefactoringSuggestedAction.cs (2)
19
public
UnifiedSuggestedActionSet
? FixAllFlavors { get; }
26
UnifiedSuggestedActionSet
? fixAllFlavors)
Features\UnifiedSuggestions\UnifiedSuggestedActions\UnifiedSuggestedActionWithNestedActions.cs (2)
18
public ImmutableArray<
UnifiedSuggestedActionSet
> NestedActionSets { get; }
25
ImmutableArray<
UnifiedSuggestedActionSet
> nestedActionSets)
Features\UnifiedSuggestions\UnifiedSuggestedActionSetComparer.cs (3)
13
internal class UnifiedSuggestedActionSetComparer : IComparer<
UnifiedSuggestedActionSet
>
52
public int Compare(
UnifiedSuggestedActionSet
x,
UnifiedSuggestedActionSet
y)
Features\UnifiedSuggestions\UnifiedSuggestedActionsSource.cs (43)
35
public static async ValueTask<ImmutableArray<
UnifiedSuggestedActionSet
>> GetFilterAndOrderCodeFixesAsync(
64
private static async Task<ImmutableArray<
UnifiedSuggestedActionSet
>> OrganizeFixesAsync(
120
Task<
UnifiedSuggestedActionSet
?> GetFixAllSuggestedActionSetAsync(CodeAction codeAction)
133
Func<CodeAction, Task<
UnifiedSuggestedActionSet
?>> getFixAllSuggestedActionSetAsync,
156
var
set = new UnifiedSuggestedActionSet(
208
private static async Task<
UnifiedSuggestedActionSet
?> GetUnifiedFixAllSuggestedActionSetAsync(
272
/// Priority for all <see cref="
UnifiedSuggestedActionSet
"/>s containing fixes is set to <see
274
/// cref="
UnifiedSuggestedActionSet
"/> only contains suppression fixes - the priority of such <see
275
/// cref="
UnifiedSuggestedActionSet
"/>s is set to <see cref="CodeActionPriority.Lowest"/> so that suppression
278
private static ImmutableArray<
UnifiedSuggestedActionSet
> PrioritizeFixGroups(
285
using var _1 = ArrayBuilder<
UnifiedSuggestedActionSet
>.GetInstance(out var nonSuppressionSets);
286
using var _2 = ArrayBuilder<
UnifiedSuggestedActionSet
>.GetInstance(out var suppressionSets);
308
var
bulkConfigurationSet = new UnifiedSuggestedActionSet(
331
var
wrappingSet = new UnifiedSuggestedActionSet(
344
static (TextSpan? span, string category) CombineSpansAndCategory(ArrayBuilder<
UnifiedSuggestedActionSet
> sets)
391
ArrayBuilder<
UnifiedSuggestedActionSet
> sets)
433
public static async Task<ImmutableArray<
UnifiedSuggestedActionSet
>> GetFilterAndOrderCodeRefactoringsAsync(
451
var orderedRefactorings = new FixedSizeArrayBuilder<
UnifiedSuggestedActionSet
>(filteredRefactorings.Length);
500
/// Priority for all <see cref="
UnifiedSuggestedActionSet
"/>s containing refactorings is set to
504
private static async Task<
UnifiedSuggestedActionSet
> OrganizeRefactoringsAsync(
550
var
set = new UnifiedSuggestedActionSet(
577
private static async Task<
UnifiedSuggestedActionSet
?> GetUnifiedFixAllSuggestedActionSetAsync(
639
public static ImmutableArray<
UnifiedSuggestedActionSet
> FilterAndOrderActionSets(
640
ImmutableArray<
UnifiedSuggestedActionSet
> fixes,
641
ImmutableArray<
UnifiedSuggestedActionSet
> refactorings,
660
private static ImmutableArray<
UnifiedSuggestedActionSet
> GetInitiallyOrderedActionSets(
662
ImmutableArray<
UnifiedSuggestedActionSet
> fixes,
663
ImmutableArray<
UnifiedSuggestedActionSet
> refactorings)
704
private static ImmutableArray<
UnifiedSuggestedActionSet
> OrderActionSets(
705
ImmutableArray<
UnifiedSuggestedActionSet
> actionSets, TextSpan? selectionOpt)
710
private static
UnifiedSuggestedActionSet
WithPriority(
711
UnifiedSuggestedActionSet
set, CodeActionPriority priority)
714
private static ImmutableArray<
UnifiedSuggestedActionSet
> InlineActionSetsIfDesirable(
715
ImmutableArray<
UnifiedSuggestedActionSet
> actionSets,
726
private static
UnifiedSuggestedActionSet
InlineActions(
UnifiedSuggestedActionSet
actionSet)
753
private static ImmutableArray<
UnifiedSuggestedActionSet
> FilterActionSetsByTitle(
754
ImmutableArray<
UnifiedSuggestedActionSet
> allActionSets)
756
using var resultDisposer = ArrayBuilder<
UnifiedSuggestedActionSet
>.GetInstance(out var result);
759
foreach (
var
set in allActionSets)
761
var
filteredSet = FilterActionSetByTitle(set, seenTitles);
771
private static
UnifiedSuggestedActionSet
? FilterActionSetByTitle(
UnifiedSuggestedActionSet
set, HashSet<string> seenTitles)
Handler\CodeActions\CodeActionHelpers.cs (7)
53
foreach (
var
set in actionSets)
75
foreach (
var
set in actionSets)
147
foreach (
var
actionSet in unifiedSuggestedActions.NestedActionSets)
257
foreach (
var
nestedActionSet in suggestedActionWithNestedActions.NestedActionSets)
318
foreach (
var
set in actionSets)
352
foreach (
var
actionSet in suggestedActionWithNestedActions.NestedActionSets)
382
private static async ValueTask<ImmutableArray<
UnifiedSuggestedActionSet
>> GetActionSetsAsync(