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