github PowerShell/vscode-powershell v1.1.0

latest releases: v2024.2.1, v2024.2.0, v2024.3.2-preview...
6 years ago

New dynamic snippet for adding comment-based help (#748)

We've added a really cool new feature that enables you to create comment-based help blocks with ease! When you've defined a function in a PowerShell script file, you can now start typing a comment block above the function definition and it will be completed for you:

Help Comment GIF

This comment block works like a snippet, allowing you to tab through the fields to quickly add documentation for the parts you care about.

This is a first pass for this feature and we plan to do more with it in the future. Please feel free to file feature requests for anything else you'd like to see!

Breakpoints hit in the Integrated Console now activate the debugger UI (#619)

In previous releases it was necessary to start the "PowerShell Interactive Session" debugging configuration before you could run a command or script from the Integrated Console and hit breakpoints in the editor UI. We've just removed this limitation!

Now when you set a breakpoint using Set-PSBreakpoint and run a script or command in the Integrated Console, the debugger UI now gets activated:

Debugger Activate GIF

Note that breakpoints set in the Integrated Console still do not show up
in the editor UI; this requires changes to VS Code that we'll be contributing for their next feature release.

Improved output when loading profile scripts (#663 and #689)

We now write the errors and Write-Output calls that occur while loading profile scripts so that it's easier to diagnose issues with your profile scripts. This fix will help us identify the things missing from the Integrated Console which cause your profile scripts to fail (like the current lack of a PrivateData object for setting console colors).

Please feel free to file issues for anything that causes your profile scripts to throw errors when they get loaded!

Other fixes and improvements

  • #751 - Removed keybinding for the "Find PowerShell Modules from the Gallery" command because it conflicts with VS Code's default "Format Selection" keybinding.

  • #739 - Fixed wording of PowerShell extension commands to have consistent capitalization. Thanks to @AndySchneiderDev for the contribution!

Don't miss a new vscode-powershell release

NewReleases is sending notifications on new releases.