PowerShell Extension for Visual Studio Code October 2022 Update

Andy Jordan

We are excited to announce that the October update to the PowerShell Extension for Visual Studio Code is now available on the extension marketplace.

This October stable release incorporates a number of bugfixes throughout September and early October, though is not based on the latest preview, v2022.10.1-preview, as the refactors involved in enabling TypeScript’s strict type checking and ESLint’s strict linting will need more testing. However, based on the success of the PowerShell Script Analyzer’s v1.21.0 release we wanted to get this to you sooner!

Updates in the October Release

Note that these updates all shipped in our PowerShell Preview Extension for VS Code before shipping in our stable channel.

Some highlights of the September and October preview releases:

For the full list of changes please refer to our changelog.

Highlighted Bugfixes

Some major bugfixes we wish to call out include:

  • supporting events registered to PowerShell’s OnIdle handler so that Azure cmdlets such as Az.Tools.Predictor now work
  • a lock around the client’s start() so the extension terminal cannot accidentally be spawned multiple times
  • making the default debug configurations not override your current working directory (by unsetting cwd on all of them).

Execution Busy Spinner

In addition to fixing bugs, we also reintroduced a fan-favorite feature: the PowerShell Language Status Icon will visually indicate if the execution pipeline is busy. For example, a long-running task in the PowerShell Extension Terminal or a launched editor command will show a spinner!

References Performance Improvements

Finally, I wanted to call out work by Patrick to significantly improve the performance of reference finding (which powers the reference code lenses), so large workspaces can now be used more easily. If these performance improvements are still not enough for a particular workspace, we also introduced two new settings to fine-tune the feature:

  • powershell.analyzeOpenDocumentsOnly when enabled will only search for references within open documents
  • powershell.enableReferencesCodeLens can be used to disable reference finding without having to turn off other code lenses

Getting Support and Giving Feedback

While we hope the new implementation provides a much better user experience, there are bound to be issues. Please let us know if you run into anything.

If you encounter any issues with the PowerShell Extension in Visual Studio Code or have feature requests, the best place to get support is through our GitHub repository.

Andy Jordan,

PowerShell Team

0 comments

Discussion is closed.

Feedback usabilla icon