From 0443ebe4e17636a5ce0a6280648b03f6deaf65ef Mon Sep 17 00:00:00 2001 From: Andrew Arnott Date: Mon, 21 Nov 2022 07:03:32 -0700 Subject: [PATCH] Add CompilationEnd tag to VSTHRD010 analyzer Fixes #1113 --- .../VSTHRD010MainThreadUsageAnalyzer.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.VisualStudio.Threading.Analyzers.CSharp/VSTHRD010MainThreadUsageAnalyzer.cs b/src/Microsoft.VisualStudio.Threading.Analyzers.CSharp/VSTHRD010MainThreadUsageAnalyzer.cs index e3c366283..55bb07f31 100644 --- a/src/Microsoft.VisualStudio.Threading.Analyzers.CSharp/VSTHRD010MainThreadUsageAnalyzer.cs +++ b/src/Microsoft.VisualStudio.Threading.Analyzers.CSharp/VSTHRD010MainThreadUsageAnalyzer.cs @@ -64,7 +64,8 @@ public class VSTHRD010MainThreadUsageAnalyzer : DiagnosticAnalyzer helpLinkUri: Utils.GetHelpLink(Id), category: "Usage", defaultSeverity: DiagnosticSeverity.Warning, - isEnabledByDefault: true); + isEnabledByDefault: true, + customTags: "CompilationEnd" /*WellKnownDiagnosticTags.CompilationEnd*/); /// /// The descriptor to use for diagnostics reported in async methods. @@ -76,7 +77,8 @@ public class VSTHRD010MainThreadUsageAnalyzer : DiagnosticAnalyzer helpLinkUri: Utils.GetHelpLink(Id), category: "Usage", defaultSeverity: DiagnosticSeverity.Warning, - isEnabledByDefault: true); + isEnabledByDefault: true, + customTags: "CompilationEnd" /*WellKnownDiagnosticTags.CompilationEnd*/); /// /// A reusable value to return from .