Overview Q & A Rating & Review
Extension for VS 2019 is available here: https://marketplace.visualstudio.com/items?itemName=Rene-Stein.ConfigureAwaitEnforcer
Inspired by the ConfigureAwaitChecker for the Resharper (https://github.com/aelij/ConfigureAwaitChecker ).
Missing ConfigureAwait call in await expression is treated as an error. This extension is useful mainly for library authors. You should use ConfigureAwait when possible.
For more details about ConfigureAwait see the article: https://msdn.microsoft.com/en-us/magazine/jj991977.aspx
Options
Version 2.0.0
Added support for Visual Studio 2022 (Preview).
Added support for 'await foreach' statement.
Added support for 'await using' statement.
Version 1.2.0
Better support for the nested await expressions.
e. g.
await tf.StartNew(async () => await Task.FromResult(5).ConfigureAwait(false)).ConfigureAwait(false);
await tf.StartNew(async () => await tf.StartNew(async () => await Task.FromResult(new Object()).ConfigureAwait(false)).ConfigureAwait(false)).ConfigureAwait(false);
Support for expressions that returns ValueTask. Support for async LINQ.
e.g.
var parseResult = await enumerateLines(reader)
.Where(line => !String.IsNullOrEmpty(line) || line[0].Equals(COMMENT))
.AggregateAsync((ParserState.WaitingForExpressionFormat, new Sat(SimpleDPLLStrategy.Solve)),
parseLine).ConfigureAwait(false);
Version 1.1.3.0
Support for the VS 2019 RTM.
Version 1.1.2.0
Improved compatibility with VS 2019.
Deleted Microsoft.VisualStudio.MPF.15.0 dependency.
Version 1.1.1.0
Improved compatibility with VS 2019.
Fixed reading of the configuration.
Misc. bug fixes.
Version 1.1.0.0
Added ConfigureAwait(true) code fix.
Added Options page (menu Tools/Options/ConfigureAwaitEnforcer in Visual Studio).
Added 'Diagnostics severity' option (values Error, Warning, Info, Hidden). The default value is Error. You have to restart Visual Studio to see the change.