Skip to content

Commit 178b1d3

Browse files
committed
Add [Shared] attribute to RemoveNumericToStringCodeFixProvider
🤖 Co-Authored-By: Claude Code <noreply@anthropic.com>
1 parent b11287e commit 178b1d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tracer/src/Datadog.Trace.Tools.Analyzers.CodeFixes/AllocationAnalyzer/RemoveNumericToStringCodeFixProvider.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
#nullable enable
77
using System.Collections.Immutable;
8+
using System.Composition;
89
using System.Linq;
910
using System.Threading;
1011
using System.Threading.Tasks;
@@ -21,6 +22,7 @@ namespace Datadog.Trace.Tools.Analyzers.AllocationAnalyzer;
2122
/// and updates explicit generic type arguments to match.
2223
/// </summary>
2324
[ExportCodeFixProvider(LanguageNames.CSharp, Name = nameof(RemoveNumericToStringCodeFixProvider))]
25+
[Shared]
2426
public sealed class RemoveNumericToStringCodeFixProvider : CodeFixProvider
2527
{
2628
private const string Title = "Remove unnecessary .ToString() call";

0 commit comments

Comments
 (0)