-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Completion bug writing 'Task.' #10502
Comments
This is a tricky parser issue. The problem is that the parser is parsing as a local declaration there the variable name is |
I'm not sure if that's the same problem but here's a very similiar case: using System.Threading.Tasks;
namespace IntelliSenseRepro
{
public class SharingController
{
private Test Service => new Test();
public async Task Test()
{
$
await Service.SaveChangesAsync();
}
}
public class Test
{
public async Task SaveChangesAsync() { }
}
} Go to $ and type If you change the Code to: using System.Threading.Tasks;
namespace IntelliSenseRepro
{
public class SharingController
{
public async Task Test()
{
Test Service = new Test();
$
await Service.SaveChangesAsync();
}
}
public class Test
{
public async Task SaveChangesAsync() { }
}
} then everything after $ is still red squigglied but at least IntelliSense pops up and gives correct completion. |
@gafter recovery work appears to have fixed this too. No longer repros on VS 2017. |
It's a bug from the monodevelop bug tracker but affects VS.NET as well.
See: http://screencast.com/t/Xebulsw8
Seems to be always in that case:
Task.$ await Task
The text was updated successfully, but these errors were encountered: