6 types derived from CodeActionOperation
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Workspaces\TestAddMetadataReferenceCodeActionOperationFactoryWorkspaceService.cs (1)
27
public class Operation :
CodeActionOperation
Microsoft.CodeAnalysis.Features (1)
AddPackage\InstallPackageDirectlyCodeActionOperation.cs (1)
20
internal sealed class InstallPackageDirectlyCodeActionOperation :
CodeActionOperation
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
Workspaces\TestSymbolRenamedCodeActionOperationFactoryWorkspaceService.cs (1)
27
public class Operation :
CodeActionOperation
Microsoft.CodeAnalysis.Workspaces (1)
CodeActions\Operations\PreviewOperation.cs (1)
13
public abstract class PreviewOperation :
CodeActionOperation
Microsoft.VisualStudio.LanguageServices (2)
Workspace\VisualStudioAddMetadataReferenceCodeActionOperationFactoryWorkspaceService.cs (1)
44
private class AddMetadataReferenceOperation :
CodeActionOperation
Workspace\VisualStudioSymbolRenamedCodeActionOperationFactoryWorkspaceService.cs (1)
45
private class RenameSymbolOperation :
CodeActionOperation
176 references to CodeActionOperation
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
src\Analyzers\Core\CodeFixes\NamingStyle\NamingStyleCodeFixProvider.cs (2)
150
protected override async Task<IEnumerable<
CodeActionOperation
>> ComputePreviewOperationsAsync(CancellationToken cancellationToken)
153
protected override async Task<ImmutableArray<
CodeActionOperation
>> ComputeOperationsAsync(IProgress<CodeAnalysisProgress> progress, CancellationToken cancellationToken)
src\Analyzers\Core\CodeFixes\UpgradeProject\AbstractUpgradeProjectCodeFixProvider.cs (2)
114
protected override Task<IEnumerable<
CodeActionOperation
>> ComputePreviewOperationsAsync(CancellationToken cancellationToken)
115
=> SpecializedTasks.EmptyEnumerable<
CodeActionOperation
>();
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (3)
CodeActions\ApplyChangesOperationTests.cs (1)
253
var
operation = operations.Single();
CodeActions\Preview\ErrorCases\ExceptionInCodeAction.cs (2)
42
protected override Task<IEnumerable<
CodeActionOperation
>> ComputePreviewOperationsAsync(CancellationToken cancellationToken)
45
protected override Task<IEnumerable<
CodeActionOperation
>> ComputeOperationsAsync(CancellationToken cancellationToken)
Microsoft.CodeAnalysis.CSharp.Features (9)
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.cs (2)
274
protected override async Task<IEnumerable<
CodeActionOperation
>> ComputePreviewOperationsAsync(CancellationToken cancellationToken)
280
return new
CodeActionOperation
[] { new ApplyChangesOperation(changedSolution) };
CodeRefactorings\EnableNullable\EnableNullableCodeRefactoringProvider.FixAllProvider.cs (2)
64
protected override async Task<IEnumerable<
CodeActionOperation
>> ComputePreviewOperationsAsync(CancellationToken cancellationToken)
71
return new
CodeActionOperation
[] { new ApplyChangesOperation(changedSolution) };
Copilot\CSharpCopilotCodeFixProvider.DismissChangesCodeAction.cs (5)
25
protected override Task<IEnumerable<
CodeActionOperation
>> ComputePreviewOperationsAsync(CancellationToken cancellationToken)
26
=> Task.FromResult<IEnumerable<
CodeActionOperation
>>(null!);
28
protected override Task<IEnumerable<
CodeActionOperation
>> ComputeOperationsAsync(CancellationToken cancellationToken)
29
=> Task.FromResult<IEnumerable<
CodeActionOperation
>>(
32
private sealed class TriggerDismissalCodeActionOperation(SyntaxNode originalMethodNode, Diagnostic diagnostic) :
CodeActionOperation
Microsoft.CodeAnalysis.EditorFeatures (16)
CodeActions\CodeActionEditHandlerService.cs (7)
43
Workspace workspace, ImmutableArray<
CodeActionOperation
> operations, CancellationToken cancellationToken)
50
foreach (
var
op in operations)
96
ImmutableArray<
CodeActionOperation
> operations,
187
Solution oldSolution, ImmutableArray<
CodeActionOperation
> operationsList)
263
ImmutableArray<
CodeActionOperation
> operations,
271
foreach (
var
operation in operations)
291
ImmutableArray<
CodeActionOperation
> operations,
CodeActions\ICodeActionEditHandlerService.cs (2)
18
Workspace workspace, ImmutableArray<
CodeActionOperation
> operations, CancellationToken cancellationToken);
24
ImmutableArray<
CodeActionOperation
> operations,
ExternalAccess\VSTypeScript\Api\VSTypeScriptRenameOperationProvider.cs (1)
11
public static
CodeActionOperation
CreateRenameOperation(DocumentId documentId, int position)
RenameTracking\RenameTrackingTaggerProvider.RenameTrackingCodeAction.cs (6)
58
protected override Task<ImmutableArray<
CodeActionOperation
>> ComputeOperationsAsync(
63
return SpecializedTasks.EmptyImmutableArray<
CodeActionOperation
>();
66
return Task.FromResult(ImmutableArray.Create<
CodeActionOperation
>(committerOperation));
69
protected override async Task<IEnumerable<
CodeActionOperation
>> ComputePreviewOperationsAsync(CancellationToken cancellationToken)
74
return await SpecializedTasks.EmptyEnumerable<
CodeActionOperation
>().ConfigureAwait(false);
110
private sealed class RenameTrackingCommitterOperation(RenameTrackingCommitter committer, IThreadingContext threadingContext) :
CodeActionOperation
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Workspaces\TestAddMetadataReferenceCodeActionOperationFactoryWorkspaceService.cs (1)
24
public
CodeActionOperation
CreateAddMetadataReferenceOperation(ProjectId projectId, AssemblyIdentity assemblyIdentity)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (12)
Suggestions\PreviewChanges\PreviewChangesCodeAction.cs (4)
33
private protected override async Task<ImmutableArray<
CodeActionOperation
>> GetOperationsCoreAsync(
40
return ImmutableArray<
CodeActionOperation
>.Empty;
46
return ImmutableArray<
CodeActionOperation
>.Empty;
62
return ImmutableArray<
CodeActionOperation
>.Empty;
Suggestions\RefineUsingCopilot\RefineUsingCopilotCodeAction.cs (4)
35
protected override Task<IEnumerable<
CodeActionOperation
>> ComputePreviewOperationsAsync(CancellationToken cancellationToken)
38
return Task.FromResult(SpecializedCollections.EmptyEnumerable<
CodeActionOperation
>());
41
protected override async Task<ImmutableArray<
CodeActionOperation
>> ComputeOperationsAsync(IProgress<CodeAnalysisProgress> progress, CancellationToken cancellationToken)
92
ICopilotCodeAnalysisService copilotCodeAnalysisService) :
CodeActionOperation
Suggestions\SuggestedActions\SuggestedAction.cs (4)
77
protected async Task<ImmutableArray<
CodeActionOperation
>> GetOperationsAsync(
85
protected async Task<IEnumerable<
CodeActionOperation
>> GetOperationsAsync(
93
protected async Task<ImmutableArray<
CodeActionOperation
>> GetPreviewOperationsAsync(CancellationToken cancellationToken)
151
IEnumerable<
CodeActionOperation
> operations = null;
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (2)
CodeRefactorings\WorkspaceServices\IOmniSharpSymbolRenamedCodeActionOperationFactoryWorkspaceService.cs (1)
11
CodeActionOperation
CreateSymbolRenamedOperation(ISymbol symbol, string newName, Solution startingSolution, Solution updatedSolution);
Internal\CodeRefactorings\WorkspaceServices\OmniSharpSymbolRenamedCodeActionOperationFactoryWorkspaceService.cs (1)
27
public
CodeActionOperation
CreateSymbolRenamedOperation(ISymbol symbol, string newName, Solution startingSolution, Solution updatedSolution)
Microsoft.CodeAnalysis.Features (89)
AddImport\CodeActions\AssemblyReferenceCodeAction.cs (4)
32
protected override async Task<IEnumerable<
CodeActionOperation
>> ComputePreviewOperationsAsync(CancellationToken cancellationToken)
35
protected override Task<ImmutableArray<
CodeActionOperation
>> ComputeOperationsAsync(IProgress<CodeAnalysisProgress> progress, CancellationToken cancellationToken)
38
private async Task<ImmutableArray<
CodeActionOperation
>> ComputeOperationsAsync(bool isPreview, CancellationToken cancellationToken)
63
Project newProject) :
CodeActionOperation
AddImport\CodeActions\InstallPackageAndAddImportCodeAction.cs (5)
51
protected override async Task<IEnumerable<
CodeActionOperation
>> ComputePreviewOperationsAsync(CancellationToken cancellationToken)
57
using var _ = ArrayBuilder<
CodeActionOperation
>.GetInstance(out var result);
83
protected override async Task<IEnumerable<
CodeActionOperation
>> ComputeOperationsAsync(
91
return ImmutableArray.Create<
CodeActionOperation
>(
100
InstallPackageDirectlyCodeActionOperation item2) :
CodeActionOperation
AddImport\CodeActions\InstallWithPackageManagerCodeAction.cs (3)
27
protected override Task<ImmutableArray<
CodeActionOperation
>> ComputeOperationsAsync(
30
return Task.FromResult(ImmutableArray.Create<
CodeActionOperation
>(
36
string packageName) :
CodeActionOperation
AddImport\CodeActions\MetadataSymbolReferenceCodeAction.cs (2)
28
protected override Task<
CodeActionOperation
?> UpdateProjectAsync(Project project, bool isPreview, CancellationToken cancellationToken)
35
return Task.FromResult<
CodeActionOperation
?>(new ApplyChangesOperation(project.AddMetadataReference(reference).Solution));
AddImport\CodeActions\ProjectSymbolReferenceCodeAction.cs (5)
40
protected override Task<
CodeActionOperation
?> UpdateProjectAsync(Project project, bool isPreview, CancellationToken cancellationToken)
43
return SpecializedTasks.Null<
CodeActionOperation
>();
49
return Task.FromResult<
CodeActionOperation
?>(applyOperation);
52
return Task.FromResult<
CodeActionOperation
?>(new AddProjectReferenceCodeActionOperation(OriginalDocument.Project.Id, FixData.ProjectReferenceToAdd, applyOperation));
55
private sealed class AddProjectReferenceCodeActionOperation(ProjectId referencingProject, ProjectId referencedProject, ApplyChangesOperation applyOperation) :
CodeActionOperation
AddImport\CodeActions\SymbolReference.SymbolReferenceCodeAction.cs (7)
32
protected override async Task<IEnumerable<
CodeActionOperation
>> ComputePreviewOperationsAsync(CancellationToken cancellationToken)
34
var
operation = await GetChangeSolutionOperationAsync(isPreview: true, cancellationToken).ConfigureAwait(false);
38
protected override async Task<ImmutableArray<
CodeActionOperation
>> ComputeOperationsAsync(
41
var
operation = await GetChangeSolutionOperationAsync(isPreview: false, cancellationToken).ConfigureAwait(false);
50
private async Task<
CodeActionOperation
?> GetChangeSolutionOperationAsync(bool isPreview, CancellationToken cancellationToken)
57
var
updatedProject = await UpdateProjectAsync(updatedDocument.Project, isPreview, cancellationToken).ConfigureAwait(false);
61
protected abstract Task<
CodeActionOperation
?> UpdateProjectAsync(Project project, bool isPreview, CancellationToken cancellationToken);
AddMissingReference\AddMissingReferenceCodeAction.cs (2)
73
protected override Task<ImmutableArray<
CodeActionOperation
>> ComputeOperationsAsync(
80
return Task.FromResult(ImmutableArray.Create<
CodeActionOperation
>(
AddPackage\InstallPackageDirectlyCodeAction.cs (2)
25
private readonly
CodeActionOperation
_installPackageOperation = new InstallPackageDirectlyCodeActionOperation(
35
protected override Task<ImmutableArray<
CodeActionOperation
>> ComputeOperationsAsync(IProgress<CodeAnalysisProgress> progress, CancellationToken cancellationToken)
AddPackage\InstallWithPackageManagerCodeAction.cs (3)
24
protected override Task<ImmutableArray<
CodeActionOperation
>> ComputeOperationsAsync(
27
return Task.FromResult(ImmutableArray.Create<
CodeActionOperation
>(
32
InstallWithPackageManagerCodeAction codeAction) :
CodeActionOperation
ChangeSignature\ChangeSignatureCodeAction.cs (1)
30
protected override async Task<IEnumerable<
CodeActionOperation
>> ComputeOperationsAsync(
ChangeSignature\ChangeSignatureCodeActionOperation.cs (2)
15
/// Defines the <see cref="
CodeActionOperation
"/> for the <see cref="ChangeSignatureCodeAction"/>
19
internal sealed class ChangeSignatureCodeActionOperation(Solution changedSolution, string? confirmationMessage) :
CodeActionOperation
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.AbstractGlobalSuppressMessageCodeAction.cs (1)
31
protected sealed override async Task<ImmutableArray<
CodeActionOperation
>> ComputeOperationsAsync(
CodeFixesAndRefactorings\AbstractFixAllCodeAction.cs (1)
55
protected sealed override Task<ImmutableArray<
CodeActionOperation
>> ComputeOperationsAsync(
CodeFixesAndRefactorings\AbstractFixAllGetFixesService.cs (6)
38
public async Task<ImmutableArray<
CodeActionOperation
>> GetFixAllOperationsAsync(
51
protected async Task<ImmutableArray<
CodeActionOperation
>> GetFixAllOperationsAsync(
201
protected static ImmutableArray<
CodeActionOperation
> GetNewFixAllOperations(ImmutableArray<
CodeActionOperation
> operations, Solution newSolution, CancellationToken cancellationToken)
203
using var _ = ArrayBuilder<
CodeActionOperation
>.GetInstance(operations.Length, out var result);
205
foreach (
var
operation in operations)
CodeFixesAndRefactorings\IFixAllGetFixesService.cs (1)
19
Task<ImmutableArray<
CodeActionOperation
>> GetFixAllOperationsAsync(IFixAllContext fixAllContext, bool showPreviewChangesDialog);
CodeRefactorings\MoveType\AbstractMoveTypeService.Editor.cs (1)
35
public virtual async Task<ImmutableArray<
CodeActionOperation
>> GetOperationsAsync()
CodeRefactorings\MoveType\AbstractMoveTypeService.MoveTypeCodeAction.cs (1)
51
protected override async Task<ImmutableArray<
CodeActionOperation
>> ComputeOperationsAsync(
CodeRefactorings\MoveType\AbstractMoveTypeService.RenameFileEditor.cs (2)
18
public override Task<ImmutableArray<
CodeActionOperation
>> GetOperationsAsync()
32
private ImmutableArray<
CodeActionOperation
> RenameFileToMatchTypeName()
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.MoveFileCodeAction.cs (1)
36
protected override async Task<ImmutableArray<
CodeActionOperation
>> ComputeOperationsAsync(
CodeRefactorings\WorkspaceServices\IAddMetadataReferenceCodeActionOperationFactoryWorkspaceService.cs (1)
13
CodeActionOperation
CreateAddMetadataReferenceOperation(ProjectId projectId, AssemblyIdentity assemblyIdentity);
CodeRefactorings\WorkspaceServices\ISymbolRenamedCodeActionOperationFactoryWorkspaceService.cs (1)
13
CodeActionOperation
CreateSymbolRenamedOperation(ISymbol symbol, string newName, Solution startingSolution, Solution updatedSolution);
Common\DocumentNavigationOperation.cs (3)
12
/// A <see cref="
CodeActionOperation
"/> for navigating to a specific position in a document.
16
/// in one <see cref="
CodeActionOperation
"/> and then have the host editor navigate to that
20
public class DocumentNavigationOperation(DocumentId documentId, int position = 0) :
CodeActionOperation
Common\StartInlineRenameSessionOperation.cs (3)
12
/// A <see cref="
CodeActionOperation
"/> for navigating to a specific position in a document and invoking inline rename.
16
/// in one <see cref="
CodeActionOperation
"/> and then have the host editor navigate to that
20
internal sealed class StartInlineRenameSessionOperation(DocumentId documentId, int position) :
CodeActionOperation
ExtractClass\ExtractClassWithDialogCodeAction.cs (1)
62
protected override async Task<IEnumerable<
CodeActionOperation
>> ComputeOperationsAsync(
ExtractInterface\ExtractInterfaceCodeAction.cs (2)
34
protected override async Task<IEnumerable<
CodeActionOperation
>> ComputeOperationsAsync(
37
var operations = SpecializedCollections.EmptyEnumerable<
CodeActionOperation
>();
GenerateConstructors\AbstractGenerateConstructorsCodeRefactoringProvider.cs (1)
126
static async Task<ImmutableArray<
CodeActionOperation
>> GetCodeActionOperationsAsync(
GenerateConstructors\AbstractGenerateConstructorsCodeRefactoringProvider.GenerateConstructorWithDialogCodeAction.cs (1)
53
protected override async Task<IEnumerable<
CodeActionOperation
>> ComputeOperationsAsync(
GenerateEqualsAndGetHashCodeFromMembers\GenerateEqualsAndHashWithDialogCodeAction.cs (1)
51
protected override async Task<IEnumerable<
CodeActionOperation
>> ComputeOperationsAsync(
GenerateOverrides\GenerateOverridesWithDialogCodeAction.cs (3)
50
protected override async Task<IEnumerable<
CodeActionOperation
>> ComputeOperationsAsync(
82
return new
CodeActionOperation
[]
98
private sealed class ChangeOptionValueOperation(bool selectedAll) :
CodeActionOperation
GenerateType\AbstractGenerateTypeService.CodeAction.cs (3)
65
protected override async Task<ImmutableArray<
CodeActionOperation
>> ComputeOperationsAsync(
172
protected override async Task<IEnumerable<
CodeActionOperation
>> ComputeOperationsAsync(
175
var operations = SpecializedCollections.EmptyEnumerable<
CodeActionOperation
>();
GenerateType\AbstractGenerateTypeService.Editor.cs (6)
87
public async Task<ImmutableArray<
CodeActionOperation
>> GetOperationsAsync()
261
private async Task<ImmutableArray<
CodeActionOperation
>> GetGenerateInNewFileOperationsAsync(
337
private async Task<ImmutableArray<
CodeActionOperation
>> CreateAddDocumentAndUpdateUsingsOrImportsOperationsAsync(
386
private async Task<ImmutableArray<
CodeActionOperation
>> GetGenerateIntoContainingNamespaceOperationsAsync(INamedTypeSymbol namedType)
403
private async Task<ImmutableArray<
CodeActionOperation
>> GetGenerateIntoExistingDocumentAsync(
548
private async Task<ImmutableArray<
CodeActionOperation
>> GetGenerateIntoTypeOperationsAsync(INamedTypeSymbol namedType)
MoveStaticMembers\MoveStaticMembersWithDialogCodeAction.cs (1)
43
protected override async Task<IEnumerable<
CodeActionOperation
>> ComputeOperationsAsync(
MoveToNamespace\MoveToNamespaceCodeAction.cs (3)
42
protected sealed override async Task<IEnumerable<
CodeActionOperation
>> ComputeOperationsAsync(
60
private static ImmutableArray<
CodeActionOperation
> CreateRenameOperations(MoveToNamespaceResult moveToNamespaceResult)
64
using var _ = PooledObjects.ArrayBuilder<
CodeActionOperation
>.GetInstance(out var operations);
PullMemberUp\Dialog\PullMemberUpWithDialogCodeAction.cs (1)
38
protected override async Task<IEnumerable<
CodeActionOperation
>> ComputeOperationsAsync(
src\Analyzers\Core\CodeFixes\NamingStyle\NamingStyleCodeFixProvider.cs (3)
150
protected override async Task<IEnumerable<
CodeActionOperation
>> ComputePreviewOperationsAsync(CancellationToken cancellationToken)
153
protected override async Task<ImmutableArray<
CodeActionOperation
>> ComputeOperationsAsync(IProgress<CodeAnalysisProgress> progress, CancellationToken cancellationToken)
162
using var operations = TemporaryArray<
CodeActionOperation
>.Empty;
src\Analyzers\Core\CodeFixes\UpgradeProject\AbstractUpgradeProjectCodeFixProvider.cs (2)
135
protected override Task<IEnumerable<
CodeActionOperation
>> ComputePreviewOperationsAsync(CancellationToken cancellationToken)
136
=> SpecializedTasks.EmptyEnumerable<
CodeActionOperation
>();
Wrapping\WrapItemsAction.cs (3)
39
protected override async Task<IEnumerable<
CodeActionOperation
>> ComputePreviewOperationsAsync(CancellationToken cancellationToken)
46
protected override async Task<ImmutableArray<
CodeActionOperation
>> ComputeOperationsAsync(IProgress<CodeAnalysisProgress> progress, CancellationToken cancellationToken)
86
private sealed class RecordCodeActionOperation(string sortTitle, string parentTitle) :
CodeActionOperation
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
Workspaces\TestSymbolRenamedCodeActionOperationFactoryWorkspaceService.cs (1)
24
public
CodeActionOperation
CreateSymbolRenamedOperation(ISymbol symbol, string newName, Solution startingSolution, Solution updatedSolution)
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Handler\CodeActions\CodeActionResolveHelper.cs (3)
23
public static Task<LSP.WorkspaceEdit> GetCodeActionResolveEditsAsync(RequestContext context, CodeActionResolveData data, ImmutableArray<
CodeActionOperation
> operations, CancellationToken cancellationToken)
37
public static async Task<LSP.WorkspaceEdit> GetCodeActionResolveEditsAsync(Solution solution, CodeActionResolveData data, ImmutableArray<
CodeActionOperation
> operations, ResourceOperationKind[] resourceOperations, Action<string> logFunction, CancellationToken cancellationToken)
49
foreach (
var
option in operations)
Microsoft.CodeAnalysis.Workspaces (33)
CodeActions\CodeAction.cs (17)
120
static codeAction => new Func<CancellationToken, Task<IEnumerable<
CodeActionOperation
>>>(codeAction.ComputeOperationsAsync).Method.DeclaringType != typeof(CodeAction));
229
public Task<ImmutableArray<
CodeActionOperation
>> GetOperationsAsync(CancellationToken cancellationToken)
235
public Task<ImmutableArray<
CodeActionOperation
>> GetOperationsAsync(
241
private protected virtual async Task<ImmutableArray<
CodeActionOperation
>> GetOperationsCoreAsync(
257
public Task<ImmutableArray<
CodeActionOperation
>> GetPreviewOperationsAsync(CancellationToken cancellationToken)
260
internal async Task<ImmutableArray<
CodeActionOperation
>> GetPreviewOperationsAsync(
277
/// cref="
CodeActionOperation
"/>'s.
279
protected virtual async Task<IEnumerable<
CodeActionOperation
>> ComputeOperationsAsync(CancellationToken cancellationToken)
291
/// cref="
CodeActionOperation
"/>'s. Prefer overriding this method over <see
295
protected virtual async Task<ImmutableArray<
CodeActionOperation
>> ComputeOperationsAsync(
320
protected virtual async Task<IEnumerable<
CodeActionOperation
>> ComputePreviewOperationsAsync(CancellationToken cancellationToken)
421
protected Task<ImmutableArray<
CodeActionOperation
>> PostProcessAsync(IEnumerable<
CodeActionOperation
> operations, CancellationToken cancellationToken)
425
internal static async Task<ImmutableArray<
CodeActionOperation
>> PostProcessAsync(
426
Solution? originalSolution, IEnumerable<
CodeActionOperation
> operations, CancellationToken cancellationToken)
428
using var result = TemporaryArray<
CodeActionOperation
>.Empty;
430
foreach (
var
op in operations)
CodeActions\CodeActionWithOptions.cs (9)
30
/// Gets the <see cref="
CodeActionOperation
"/>'s for this <see cref="CodeAction"/> given the specified options.
34
public Task<IEnumerable<
CodeActionOperation
>?> GetOperationsAsync(object? options, CancellationToken cancellationToken)
37
internal async Task<IEnumerable<
CodeActionOperation
>?> GetOperationsAsync(
53
private protected sealed override async Task<ImmutableArray<
CodeActionOperation
>> GetOperationsCoreAsync(
66
protected virtual Task<IEnumerable<
CodeActionOperation
>> ComputeOperationsAsync(object options, CancellationToken cancellationToken)
67
=> SpecializedTasks.EmptyEnumerable<
CodeActionOperation
>();
74
protected virtual Task<IEnumerable<
CodeActionOperation
>> ComputeOperationsAsync(object options, IProgress<CodeAnalysisProgress> progress, CancellationToken cancellationToken)
77
protected override Task<IEnumerable<
CodeActionOperation
>> ComputeOperationsAsync(CancellationToken cancellationToken)
78
=> SpecializedTasks.EmptyEnumerable<
CodeActionOperation
>();
CodeActions\Operations\ApplyChangesOperation.cs (3)
18
/// A <see cref="
CodeActionOperation
"/> for applying solution changes to a workspace.
24
/// <description><text>Implement a custom <see cref="CodeAction"/> and <see cref="
CodeActionOperation
"/>s</text></description>
34
public sealed class ApplyChangesOperation(Solution changedSolution) :
CodeActionOperation
CodeActions\Operations\OpenDocumentOperation.cs (1)
13
public sealed class OpenDocumentOperation(DocumentId documentId, bool activateIfAlreadyOpen = false) :
CodeActionOperation
CodeActions\Operations\PreviewOperation.cs (2)
17
/// If preview is null and <see cref="
CodeActionOperation
.Title"/> is non-null, then <see cref="
CodeActionOperation
.Title"/> is used to generate the preview.
CodeFixes\FixAllOccurrences\WellKnownFixAllProviders.cs (1)
23
/// The batch fix all provider only batches operations (i.e. <see cref="
CodeActionOperation
"/>) of type
Microsoft.VisualStudio.LanguageServices (3)
TableDataSource\Suppression\VisualStudioSuppressionFixService.cs (1)
341
var operations = ImmutableArray.Create<
CodeActionOperation
>(new ApplyChangesOperation(newSolution));
Workspace\VisualStudioAddMetadataReferenceCodeActionOperationFactoryWorkspaceService.cs (1)
29
public
CodeActionOperation
CreateAddMetadataReferenceOperation(ProjectId projectId, AssemblyIdentity assemblyIdentity)
Workspace\VisualStudioSymbolRenamedCodeActionOperationFactoryWorkspaceService.cs (1)
35
public
CodeActionOperation
CreateSymbolRenamedOperation(ISymbol symbol, string newName, Solution startingSolution, Solution updatedSolution)