You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected Behavior:
All 3 methods show the diagnostic.
Actual Behavior:
Only Test1 shows the diagnostic.
I know that you explicitly have to configure a "async modifier" in the naming rule. But there is no other way to configure a rule for methods with awaitable return types.
Version Used: VS 17.9.6
Steps to Reproduce:
EditorConfig:
Sample code:
Diagnostic Id:
IDE1006 Naming rule violation: Missing suffix: 'Async'
Expected Behavior:
All 3 methods show the diagnostic.
Actual Behavior:
Only
Test1
shows the diagnostic.I know that you explicitly have to configure a "async modifier" in the naming rule. But there is no other way to configure a rule for methods with awaitable return types.
Note: I wasn't sure about
Test3
, but VSTHRD200 does show it as requiring an "Async" suffix (related issue: microsoft/vs-threading#431). Also there is this comment from @stephentoub: dotnet/runtime#27547 (comment)The text was updated successfully, but these errors were encountered: