You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Too much code in Visual Studio runs expensive, async work that slows down IDE shutdown.
Proposed solution
A new analyzer that ensures all JoinableTaskFactory.SwitchToMainThreadAsync calls pass in a CancellationToken (or None or default), with a fix offered to pass in VsShellUtilities.ShutdownToken. The analyzer should only activate when the VsShellUtilities.ShutdownToken symbol is available to the compilation.
The text was updated successfully, but these errors were encountered:
Problem statement
Too much code in Visual Studio runs expensive, async work that slows down IDE shutdown.
Proposed solution
A new analyzer that ensures all
JoinableTaskFactory.SwitchToMainThreadAsync
calls pass in aCancellationToken
(orNone
ordefault
), with a fix offered to pass inVsShellUtilities.ShutdownToken
. The analyzer should only activate when theVsShellUtilities.ShutdownToken
symbol is available to the compilation.The text was updated successfully, but these errors were encountered: