Skip to content

Commit 3a46a63

Browse files
committed
Add the ExportCodeFixProvider attribute to a couple classes.
1 parent f90d90e commit 3a46a63

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

VSDiagnostics/VSDiagnostics/VSDiagnostics/Diagnostics/Attributes/AttributeWithEmptyArgumentList/AttributeWithEmptyArgumentListCodeFix.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
namespace VSDiagnostics.Diagnostics.Attributes.AttributeWithEmptyArgumentList
1111
{
12-
[ExportCodeFixProvider("AttributeWithEmptyArgumentListCodeFix", LanguageNames.CSharp), Shared]
12+
[ExportCodeFixProvider("AttributeWithEmptyArgumentList", LanguageNames.CSharp), Shared]
1313
public class AttributeWithEmptyArgumentListCodeFix : CodeFixProvider
1414
{
1515
public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(AttributeWithEmptyArgumentListAnalyzer.Rule.Id);

VSDiagnostics/VSDiagnostics/VSDiagnostics/Diagnostics/General/CompareBooleanToFalseLiteral/CompareBooleanToFalseLiteralCodeFix.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
namespace VSDiagnostics.Diagnostics.General.CompareBooleanToFalseLiteral
1414
{
15-
[ExportCodeFixProvider("CompareBooleanToTrueLiteral", LanguageNames.CSharp), Shared]
15+
[ExportCodeFixProvider("CompareBooleanToFalseLiteral", LanguageNames.CSharp), Shared]
1616
public class CompareBooleanToFalseLiteralCodeFix : CodeFixProvider
1717
{
1818
public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(CompareBooleanToFalseLiteralAnalyzer.Rule.Id);

VSDiagnostics/VSDiagnostics/VSDiagnostics/Diagnostics/General/ConditionIsAlwaysFalse/ConditionIsAlwaysFalseCodeFix.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Collections.Immutable;
2+
using System.Composition;
23
using System.Linq;
34
using System.Threading.Tasks;
45
using Microsoft.CodeAnalysis;
@@ -9,6 +10,7 @@
910

1011
namespace VSDiagnostics.Diagnostics.General.ConditionIsAlwaysFalse
1112
{
13+
[ExportCodeFixProvider("ConditionIsAlwaysFalse", LanguageNames.CSharp), Shared]
1214
public class ConditionIsAlwaysFalseCodeFix : CodeFixProvider
1315
{
1416
public override ImmutableArray<string> FixableDiagnosticIds

VSDiagnostics/VSDiagnostics/VSDiagnostics/Diagnostics/General/ConditionIsAlwaysTrue/ConditionIsAlwaysTrueCodeFix.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Collections.Immutable;
2+
using System.Composition;
23
using System.Linq;
34
using System.Threading.Tasks;
45
using Microsoft.CodeAnalysis;
@@ -9,6 +10,7 @@
910

1011
namespace VSDiagnostics.Diagnostics.General.ConditionIsAlwaysTrue
1112
{
13+
[ExportCodeFixProvider("ConditionIsAlwaysTrue", LanguageNames.CSharp), Shared]
1214
public class ConditionIsAlwaysTrueCodeFix : CodeFixProvider
1315
{
1416
public override ImmutableArray<string> FixableDiagnosticIds

VSDiagnostics/VSDiagnostics/VSDiagnostics/VSDiagnosticsResources.resx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,6 @@
130130
<data name="AsToCastAnalyzerTitle" xml:space="preserve">
131131
<value>Use cast instead of as.</value>
132132
</data>
133-
<data name="AsyncCategory" xml:space="preserve">
134-
<value>Async</value>
135-
</data>
136133
<data name="AsyncMethodWithoutAsyncSuffixAnalyzerMessage" xml:space="preserve">
137134
<value>Method "{0}" does not end with 'Async'.</value>
138135
<comment>{0} - Method name</comment>
@@ -468,4 +465,7 @@
468465
<data name="LoopStatementWithoutBracesCodeFixTitle" xml:space="preserve">
469466
<value>Use braces</value>
470467
</data>
468+
<data name="AsyncCategory" xml:space="preserve">
469+
<value>Async</value>
470+
</data>
471471
</root>

0 commit comments

Comments
 (0)