github PowerShell/vscode-powershell v2021.8.2

3 years ago

v2021.8.2

Tuesday, August 24, 2021

This release also contains all changes listed in v2021.8.1-preview
below. Notably it fixes several major issues when debugging scripts that were caused by
threading deadlocks in both PowerShell Editor Services and its library, OmniSharp's C#
Language Server Protocol
that we resolved by setting the compiler to treat
CA2007 as an error. This allowed us to programmatically fix every awaited task to
use .ConfigureAwait(false) and so avoid deadlocks caused by the introduction of new
synchronization contexts in user code (such as the use of System.Windows.Forms). By
fixing this through a compiler rule, we effectively prevent the issue from recurring.
Additionally, we not only added a full regression test for this scenario but also
re-enabled all the prior DebugService unit tests in PowerShell Editor Services.

While there is still much work to do, we are making significant headway on improve the
debugger's reliability, one of our current project focuses. See the Debugger Reliability
Project
for our progress.

vscode-powershell

PowerShellEditorServices

Don't miss a new vscode-powershell release

NewReleases is sending notifications on new releases.