/
WellKnownFixAllProviders.cs
28 lines (26 loc) · 1.36 KB
/
WellKnownFixAllProviders.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Microsoft.CodeAnalysis.CodeActions;
namespace Microsoft.CodeAnalysis.CodeFixes
{
/// <summary>
/// Contains well known implementations of <see cref="FixAllProvider"/>.
/// </summary>
public static class WellKnownFixAllProviders
{
/// <summary>
/// Default batch fix all provider.
/// This provider batches all the individual diagnostic fixes across the scope of fix all action,
/// computes fixes in parallel and then merges all the non-conflicting fixes into a single fix all code action.
/// This fixer supports fixes for the following fix all scopes:
/// <see cref="FixAllScope.Document"/>, <see cref="FixAllScope.Project"/> and <see cref="FixAllScope.Solution"/>.
/// </summary>
/// <remarks>
/// The batch fix all provider only batches operations (i.e. <see cref="CodeActionOperation"/>) of type
/// <see cref="ApplyChangesOperation"/> present within the individual diagnostic fixes. Other types of
/// operations present within these fixes are ignored.
/// </remarks>
public static FixAllProvider BatchFixer => BatchFixAllProvider.Instance;
}
}