v2023.2.1
Thursday, February 23, 2023
vscode-powershell
Primarily an update to v3.8 of PowerShell Editor Services, as previewed over February.
Includes a massive enhancement to extension's symbol support, nearly completing the
Consistent References project, with the final work in an upcoming preview. Enjoy!
PowerShellEditorServices v3.8.1
- ✨ 📁 vscode-powershell #2112 - Add
WorkspaceFolders
and use it when enumerating files. - ✨ 🙏 vscode-powershell #1481 - Count
${Function:My-Function}
as a function reference. - 🐛 🙏 vscode-powershell #1089 - Strip scope from function references.
- 🐛 🙏 PowerShellEditorServices #1989 - Keep only first assignment as declaration.
- ✨ 🐢 PowerShellEditorServices #1988 - Support Run/Debug tests in PSKoans-files. (Thanks @fflaten!)
In the PR below we rewrote all the symbol logic. Classes (and their properties and
methods) are now proper symbols. Instead of a dozen similar-yet-different Abstract Symbol
Tree (AST) PowerShell script visitors handling different parts of each symbol-related
request, we have a single visitor that builds a cached dictionary of symbols for each
file. This was a massive simplification of the code that also leads to huge performance
improvements across all the symbol related features:
- Go to Symbol in Workspace
- Go to Symbol in Editor
- Go to Definition
- Go to References / CodeLens
- Outline view
Please try it out and give us feedback! There's plenty of room for more improvement, and
this will be much easier going forward.
- ✨ 🙏 PowerShellEditorServices #1984 - Integrating class symbol support.