Closed
Description
Describe the bug
In the "@functions" section of a Blazor Component, when using the auto complete of the virtual async methods (That can be overriden), the generated code from the auto complete doesn't have an "async" tag on the method.
To Reproduce
Steps to reproduce the behavior:
- Using ASP.NET Core 3.0 Preview 5
- Add a "@functions" section to a Blazor Component
- Auto complete a virtual method to override it (Example: OnAfterRenderAsync)
Expected behavior
The auto completed method would include the "async" tag on the method.
Code Details
// Produced
protected override Task OnAfterRenderAsync()
{
return base.OnAfterRenderAsync();
}
// Expected
protected override async Task OnAfterRenderAsync()
{
await base.OnAfterRenderAsync();
}