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