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
However the same refactoring is provided in cases when compiler raises CS4014 warning about not awaiting a task-returing method inside another async method:
The fix for the diagnostic is not on top of the action list:
There is no fix-all. And even if we can add fix-all to refactorings, I want to fix only warning cases, not every place where await can be added
Therefore I think "Add await" should be split into refatoring and a codefix part - it should appear as a codefix with propper fix-all support for cases of CS4014 and just a refactoring in other valid places
The text was updated successfully, but these errors were encountered:
Currently roslyn provides "Add await" refactoring for cases like this:
However the same refactoring is provided in cases when compiler raises
CS4014
warning about not awaiting a task-returing method inside another async method:Problems here are:
await
can be addedTherefore I think "Add await" should be split into refatoring and a codefix part - it should appear as a codefix with propper fix-all support for cases of
CS4014
and just a refactoring in other valid placesThe text was updated successfully, but these errors were encountered: