Skip to content

Commit 5303218

Browse files
committed
Ignore warning about synchronously waiting on tasks
Because we do this all over the place, generating a lot of warnings, and it's often an intentional behavior.
1 parent d45d2d2 commit 5303218

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ dotnet_diagnostic.CS0414.severity = error
2525
dotnet_diagnostic.CA2007.severity = error
2626
# CA1822: Mark members as static
2727
dotnet_diagnostic.CA1822.severity = error
28+
# VSTHRD002: Synchronously waiting on tasks or awaiters may cause deadlocks
29+
# TODO: Fix all of these issues and explicitly ignore the intentional ones.
30+
dotnet_diagnostic.VSTHRD002.severity = silent
2831
# VSTHRD200: Use "Async" suffix for awaitable methods
2932
dotnet_diagnostic.VSTHRD200.severity = silent
3033

0 commit comments

Comments
 (0)