microsoft / VSExtensibility

A repo for upcoming changes to extensibility in Visual Studio, the new extensibility model, and language server protocol.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is ConfigureAwait() needed?

LeeMSilver opened this issue · comments

in-proc

Most/all of my await's have a light-bulb warning for VSTHRD111 Add ConfigureAwait() with choices of true/false. I've done some research including this Devblog https://devblogs.microsoft.com/dotnet/configureawait-faq/ and I still don't know if it's needed and if so should it be false (as I interpreted the above blog, true does nothing meaningful.) If it should be specified, should it be done on all my await's or only some (if so, which ones.)

The vs-threading repo has docs, including a "cookbook" for recommendations on how to handle threading, especially in VS.

There's a section specifically on ConfigureAwait: https://github.com/microsoft/vs-threading/blob/main/doc/cookbook_vs.md#should-i-await-a-task-with-configureawaitfalse