1 implementation of IUnifiedSuggestedAction
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\UnifiedSuggestions\UnifiedSuggestedActions\UnifiedSuggestedAction.cs (1)
14internal class UnifiedSuggestedAction : IUnifiedSuggestedAction
39 references to IUnifiedSuggestedAction
Microsoft.CodeAnalysis.EditorFeatures.Cocoa (1)
SuggestedActionsSource.cs (1)
224ISuggestedAction ConvertToSuggestedAction(IUnifiedSuggestedAction unifiedSuggestedAction)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Suggestions\SuggestedActionsSource.cs (1)
224ISuggestedAction ConvertToSuggestedAction(IUnifiedSuggestedAction unifiedSuggestedAction)
Microsoft.CodeAnalysis.LanguageServer.Protocol (37)
Features\UnifiedSuggestions\UnifiedSuggestedActionSet.cs (2)
21public ImmutableArray<IUnifiedSuggestedAction> Actions { get; } 32ImmutableArray<IUnifiedSuggestedAction> actions,
Features\UnifiedSuggestions\UnifiedSuggestedActionsSource.cs (27)
27/// via intermediate interface <see cref="IUnifiedSuggestedAction"/>. 75var map = ImmutableDictionary.CreateBuilder<CodeFixGroupKey, IList<IUnifiedSuggestedAction>>(); 93IDictionary<CodeFixGroupKey, IList<IUnifiedSuggestedAction>> map, 104IDictionary<CodeFixGroupKey, IList<IUnifiedSuggestedAction>> map, 134IDictionary<CodeFixGroupKey, IList<IUnifiedSuggestedAction>> map, 142var unifiedSuggestedAction = await GetUnifiedSuggestedActionAsync(originalSolution, fix.Action, fix).ConfigureAwait(false); 149async Task<IUnifiedSuggestedAction> GetUnifiedSuggestedActionAsync(Solution originalSolution, CodeAction action, CodeFix fix) 153using var _ = ArrayBuilder<IUnifiedSuggestedAction>.GetInstance(action.NestedCodeActions.Length, out var unifiedNestedActions); 156var unifiedNestedAction = await GetUnifiedSuggestedActionAsync(originalSolution, nestedAction, fix).ConfigureAwait(false); 181CodeFix fix, IUnifiedSuggestedAction suggestedAction, 182IDictionary<CodeFixGroupKey, IList<IUnifiedSuggestedAction>> map, 189map[groupKey] = ImmutableArray.CreateBuilder<IUnifiedSuggestedAction>(); 232using var fixAllSuggestedActionsDisposer = ArrayBuilder<IUnifiedSuggestedAction>.GetInstance(out var fixAllSuggestedActions); 284ImmutableDictionary<CodeFixGroupKey, IList<IUnifiedSuggestedAction>> map, 290using var _3 = ArrayBuilder<IUnifiedSuggestedAction>.GetInstance(out var bulkConfigurationActions); 337actions: ImmutableArray.Create<IUnifiedSuggestedAction>(wrappingSuggestedAction), 392ImmutableArray<IUnifiedSuggestedAction> actions, 521using var _ = ArrayBuilder<IUnifiedSuggestedAction>.GetInstance(out var refactoringSuggestedActions); 525var unifiedActionSet = await GetUnifiedSuggestedActionSetAsync(action, applicableToSpan, selection, cancellationToken).ConfigureAwait(false); 547async Task<IUnifiedSuggestedAction> GetUnifiedSuggestedActionSetAsync(CodeAction codeAction, TextSpan? applicableToSpan, TextSpan selection, CancellationToken cancellationToken) 551using var _1 = ArrayBuilder<IUnifiedSuggestedAction>.GetInstance(codeAction.NestedCodeActions.Length, out var nestedActions); 554var unifiedAction = await GetUnifiedSuggestedActionSetAsync(nestedAction, applicableToSpan, selection, cancellationToken).ConfigureAwait(false); 611using var fixAllSuggestedActionsDisposer = ArrayBuilder<IUnifiedSuggestedAction>.GetInstance(out var fixAllSuggestedActions); 739using var newActionsDisposer = ArrayBuilder<IUnifiedSuggestedAction>.GetInstance(out var newActions); 740foreach (var action in actionSet.Actions) 784using var actionsDisposer = ArrayBuilder<IUnifiedSuggestedAction>.GetInstance(out var actions); 786foreach (var action in set.Actions)
Handler\CodeActions\CodeActionHelpers.cs (8)
54foreach (var suggestedAction in set.Actions) 82IUnifiedSuggestedAction suggestedAction, 119IUnifiedSuggestedAction suggestedAction, 134foreach (var nestedSuggestedAction in nestedActionSet.Actions) 147static LSP.Diagnostic[]? GetApplicableDiagnostics(LSP.CodeActionContext context, IUnifiedSuggestedAction action) 193foreach (var suggestedAction in set.Actions) 211private static CodeAction GetNestedActionsFromActionSet(IUnifiedSuggestedAction suggestedAction) 222foreach (var action in actionSet.Actions)