mfractor / mfractor-feedback

Found a bug or have a feature request for MFractor? Submit it here!
3 stars 0 forks source link

New Code Action: add or remove async modifier #278

Open ravero opened 4 years ago

ravero commented 4 years ago

A new simple and useful code action could be added to the product: when inside a method that returns Task or Task<T>, MFractor could identify if the method has the async modifier and provide code actions to either add or remove.

A classic scenario is when you implement a interface to a new class, Visual Studio creates the stubs for async methods without the modifier. Sometimes also you want to add or remove it later, because you've changed the implementation.