1 implementation of IUnifiedSuggestedAction
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\UnifiedSuggestions\UnifiedSuggestedActions\UnifiedSuggestedAction.cs (1)
13
internal class UnifiedSuggestedAction :
IUnifiedSuggestedAction
42 references to IUnifiedSuggestedAction
Microsoft.CodeAnalysis.LanguageServer.Protocol (42)
Features\UnifiedSuggestions\UnifiedSuggestedActionSet.cs (2)
21
public ImmutableArray<
IUnifiedSuggestedAction
> Actions { get; }
32
ImmutableArray<
IUnifiedSuggestedAction
> actions,
Features\UnifiedSuggestions\UnifiedSuggestedActionsSource.cs (25)
28
/// via intermediate interface <see cref="
IUnifiedSuggestedAction
"/>.
71
var map = ImmutableDictionary.CreateBuilder<CodeFixGroupKey, IList<
IUnifiedSuggestedAction
>>();
89
IDictionary<CodeFixGroupKey, IList<
IUnifiedSuggestedAction
>> map,
100
IDictionary<CodeFixGroupKey, IList<
IUnifiedSuggestedAction
>> map,
130
IDictionary<CodeFixGroupKey, IList<
IUnifiedSuggestedAction
>> map,
145
async Task<
IUnifiedSuggestedAction
> GetUnifiedSuggestedActionAsync(Solution originalSolution, CodeAction action, CodeFix fix)
149
var unifiedNestedActions = new FixedSizeArrayBuilder<
IUnifiedSuggestedAction
>(action.NestedActions.Length);
152
var
unifiedNestedAction = await GetUnifiedSuggestedActionAsync(originalSolution, nestedAction, fix).ConfigureAwait(false);
177
CodeFix fix,
IUnifiedSuggestedAction
suggestedAction,
178
IDictionary<CodeFixGroupKey, IList<
IUnifiedSuggestedAction
>> map,
185
suggestedActions = ImmutableArray.CreateBuilder<
IUnifiedSuggestedAction
>();
229
using var fixAllSuggestedActionsDisposer = ArrayBuilder<
IUnifiedSuggestedAction
>.GetInstance(out var fixAllSuggestedActions);
281
ImmutableDictionary<CodeFixGroupKey, IList<
IUnifiedSuggestedAction
>> map,
287
using var _3 = ArrayBuilder<
IUnifiedSuggestedAction
>.GetInstance(out var bulkConfigurationActions);
389
ImmutableArray<
IUnifiedSuggestedAction
> actions,
513
using var _ = ArrayBuilder<
IUnifiedSuggestedAction
>.GetInstance(out var refactoringSuggestedActions);
517
var
unifiedActionSet = await GetUnifiedSuggestedActionSetAsync(action, applicableToSpan, selection, cancellationToken).ConfigureAwait(false);
539
async Task<
IUnifiedSuggestedAction
> GetUnifiedSuggestedActionSetAsync(CodeAction codeAction, TextSpan? applicableToSpan, TextSpan selection, CancellationToken cancellationToken)
543
var nestedActions = new FixedSizeArrayBuilder<
IUnifiedSuggestedAction
>(codeAction.NestedActions.Length);
546
var
unifiedAction = await GetUnifiedSuggestedActionSetAsync(nestedAction, applicableToSpan, selection, cancellationToken).ConfigureAwait(false);
602
using var fixAllSuggestedActionsDisposer = ArrayBuilder<
IUnifiedSuggestedAction
>.GetInstance(out var fixAllSuggestedActions);
728
using var newActionsDisposer = ArrayBuilder<
IUnifiedSuggestedAction
>.GetInstance(out var newActions);
729
foreach (
var
action in actionSet.Actions)
773
using var actionsDisposer = ArrayBuilder<
IUnifiedSuggestedAction
>.GetInstance(out var actions);
775
foreach (
var
action in set.Actions)
Handler\CodeActions\CodeActionHelpers.cs (15)
56
foreach (
var
suggestedAction in set.Actions)
77
foreach (
var
suggestedAction in set.Actions)
93
private static bool IsCodeActionNotSupportedByLSP(
IUnifiedSuggestedAction
suggestedAction)
105
IUnifiedSuggestedAction
suggestedAction,
138
IUnifiedSuggestedAction
suggestedAction,
149
foreach (
var
action in actionSet.Actions)
177
IUnifiedSuggestedAction
suggestedAction)
216
IUnifiedSuggestedAction
suggestedAction,
246
IUnifiedSuggestedAction
suggestedAction,
261
foreach (
var
nestedSuggestedAction in nestedActionSet.Actions)
275
private static LSP.Diagnostic[]? GetApplicableDiagnostics(CodeActionContext context,
IUnifiedSuggestedAction
action)
320
foreach (
var
suggestedAction in set.Actions)
343
private static CodeAction GetNestedActionsFromActionSet(
IUnifiedSuggestedAction
suggestedAction, string? fixAllScope)
354
foreach (
var
action in actionSet.Actions)
368
private static void GetFixAllActionsFromActionSet(
IUnifiedSuggestedAction
suggestedAction, ArrayBuilder<CodeAction> codeActions, string? fixAllScope)