We are excited to announce that the February update to the PowerShell Extension for Visual Studio Code is now available on the extension marketplace.
In this update we rewrote all the symbol logic. Classes (and their properties and methods) are now proper symbols. We now have a single visitor that builds a cached dictionary of symbols for each file instead of a dozen similar-yet-different Abstract Symbol Tree (AST) PowerShell script visitors handling different parts of each symbol-related request. This was a massive simplification of the code that also leads to huge performance improvements across all the symbol related features.
Updates in the February 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 February preview releases:
- Add
WorkspaceFolders
and use it when enumerating files vscode-powershell #2112 - Count
${Function:My-Function}
as a function reference vscode-powershell #1481 - Strip scope from function references vscode-powershell #1089
- Keep only first assignment as declaration PowerShellEditorServices #1989
A number of performance improvements to the following:
- Go to Symbol in Workspace
- Go to Symbol in Editor
- Go to Definition
- Go to References / CodeLens
- Outline view
For the full list of changes please refer to our changelog.
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.
Sydney Smith
PowerShell Team
The post PowerShell Extension for Visual Studio Code February 2023 Update appeared first on PowerShell Team.