controlflow / resharper-postfix

ReSharper Postfix Templates plugin
MIT License
127 stars 12 forks source link

.await could add async modifier to the method #41

Closed asizikov closed 9 years ago

asizikov commented 9 years ago

When I have a Task returning method like this:

public Task Foo()
{
    SomethingAsync().await
}

The .await template produces noncompilable code. R# has a 'Make method 'Foo' async' quick fix for that, though. Is that possible to invoke the quick fix automatically by default or at least have it as an option of choice?

controlflow commented 9 years ago

Hm, maybe this is a good idea, thanks!

controlflow commented 9 years ago

Implemented in upcoming ReSahrper 10 EAPs, thanks for the idea :+1: