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