Releases: PowerShell/vscode-powershell
v1.8.1
v1.8.1
Wednesday, July 11, 2018
- PowerShell/vscode-powershell #1418 -
Fix code folding in documents using CRLF newlines. (Thanks @glennsarti!)
v1.8.0
Note: Please download the 1.8.1 release for the latest update.
v1.8.0
Tuesday, July 10, 2018
-
PowerShell/vscode-powershell #1238 -
Added functionality to install the VSCode context menus. (Thanks @detlefs!) -
PowerShell/vscode-powershell #1354 -
Edit snippet to fix issue #1353 (Thanks @kilasuit!) -
PowerShell/vscode-powershell #1362 -
Updated Pester Problem Matcher (Thanks @awickham10!) -
PowerShell/vscode-powershell #1359 -
(maint) Add visual ruler for line length (Thanks @glennsarti!) -
PowerShell/vscode-powershell #1344 -
Update to TypeScript 2.9.x (Thanks @rkeithhill!) -
PowerShell/vscode-powershell #1323 -
SpecProcId - interactive var replacement supports only string type (Thanks @rkeithhill!) -
PowerShell/vscode-powershell #1327 -
Switch to named pipes -
PowerShell/vscode-powershell #1321 -
GitHub issue template tweaks and add PSSA template (Thanks @bergmeister!) -
PowerShell/vscode-powershell #1320 -
Take advantage of multiple issue templates (Thanks @rkeithhill!) -
PowerShell/vscode-powershell #1317 -
Change SpecifyScriptArgs command to only return string - not string[] (Thanks @rkeithhill!) -
PowerShell/vscode-powershell #1318 -
Update package veresion in lock file, format package.json file. (Thanks @rkeithhill!) -
PowerShell/vscode-powershell #1312 -
Updates to Examples PSSA settings file to include more rule config (Thanks @rkeithhill!) -
PowerShell/vscode-powershell #1305 -
Make SaveAs work for untitled files -
PowerShell/vscode-powershell #1307 -
Added Columns, Improved readability for ToC. (Thanks @st0le!) -
PowerShell/vscode-powershell #1368 -
Add new snippet for #region (#1368) (Thanks @lipkau!) -
PowerShell/vscode-powershell #1416 -
(GH-1413) Resolve promise correctly in Folding feature (Thanks @glennsarti!) -
PowerShell/vscode-powershell #1412 -
Set the extension's log level based on settings value (Thanks @rkeithhill!) -
PowerShell/vscode-powershell #1411 -
Escape paths w/single quotes before passing to powershell in single-quoted strings (#1411) (Thanks @rkeithhill!) -
PowerShell/vscode-powershell #1409 -
Rename file to match type name (Thanks @rkeithhill!) -
PowerShell/vscode-powershell #1408 -
Restore ability to start debug session when script run in PSIC hits breakpoint (Thanks @rkeithhill!) -
PowerShell/vscode-powershell #1407 -
Scroll the terminal to bottom for F8 executionPartial fix #1257 (Thanks @rkeithhill!) -
PowerShell/vscode-powershell #1414 -
Update grammar parsing for vscode-textmate v4 module (Thanks @glennsarti!) -
PowerShell/vscode-powershell #1397 -
Allow debugging in interactive session with no dir change (Thanks @rkeithhill!) -
PowerShell/vscode-powershell #1402 -
Move lint directive after the file-header to fix lint error (Thanks @rkeithhill!) -
PowerShell/vscode-powershell #1366 -
Add support for side-by-side PS Core preview on Linux/macOS (Thanks @rkeithhill!) -
PowerShell/vscode-powershell #1391 -
Add PowerShell Online Help lookup to context menu (Thanks @corbob!) -
PowerShell/vscode-powershell #1396 -
Add tslint rule file-header to enforce copyright in TS files (Thanks @rkeithhill!) -
PowerShell/vscode-powershell #1355 -
Add syntax aware folding provider (Thanks @glennsarti!) -
PowerShell/vscode-powershell #1395 -
Update community_snippets.md (Thanks @fullenw1!) -
PowerShell/vscode-powershell #1382 -
Fix markdown syntax (Thanks @lipkau!) -
PowerShell/vscode-powershell #1369 -
Update README.md with kbds and what to do if you find a vulnerability -
PowerShell/vscode-powershell #1297 -
Added some snippets (#1297) (Thanks @SQLDBAWithABeard!)
v1.7.0
1.7.0
Wednesday, April 25, 2018
-
PowerShell/vscode-powershell #1285 -
Add a community snippet for date-annotatedWrite-Verbose
messages. -
PowerShell/vscode-powershell #1228 -
Make comment-based help trigger always be##
with a new settingpowershell.helpCompletion
to
allow you to select between help comment styles:BlockComment
(default) orLineComment
.
You can also specify Disabled to disable this functionality. -
PowerShell/vscode-powershell #603 -
Fix PowerShell crashing on machines with IPv6 disabled. -
PowerShell/vscode-powershell #1243 -
Support custom PowerShell executable paths in user configuration which can be selected (via name)
in either user or workspace configuration. -
PowerShell/vscode-powershell #1264 -
Add support for Visual Studio Live Share. -
PowerShell/vscode-powershell #1261 -
Add support for$psEditor.GetEditorContext.CurrentFile.SaveAs("NewFileName.ps1")
. -
PowerShell/vscode-powershell #1252 -
Change the way the extension builds and runs, so that PowerShellEditorServices is self-contained. -
PowerShell/vscode-powershell #1248 -
Replace$global:IsOSX
with$global:IsMacOS
. -
PowerShell/vscode-powershell #1246 -
Create community_snippets.md for user created snippets. -
PowerShell/vscode-powershell #1155 -
Fix PSES crashes caused by running "Set PSScriptAnalyzer Rules" on an untitled file. -
PowerShell/vscode-powershell #1236 -
Stop an error occurring when VSCode trims trailing whitespace and sends document update messages. -
PowerShell/vscode-powershell #996 -
FixInstall-PSCode.ps1
crashing due to$IsLinux
variable in older PowerShell versions. -
PowerShell/vscode-powershell #1234 -
Add snippets for Hashtable and PSCustomObject. (Thanks to @rschaeferhig!) -
PowerShell/vscode-powershell #1233 -
Add a keybinding for Show Addtional Commands to Shift-Alt-S. (Thanks to @dsolodow!) -
PowerShell/vscode-powershell #1227 -
Add an indicator for when PowerShell is running in the status bar. -
PowerShell/vscode-powershell #1225 -
Fix launch config not using temporary integrated console setting. -
PowerShell/vscode-powershell #1208 -
Stop configured temporary windows closing after running Pester tests.
v1.6.0
Fixes and Improvements
-
PowerShell/vscode-powershell #907 - Persist temp console debug session.
-
PowerShell/vscode-powershell #1198 - Enhance Start-EditorServices.ps1 for better logging and fix bugs.
-
PowerShell/PowerShellEditorServices #413 - Allow opening files as not previews to allow Open-EditorFile to open multiple files passed in.
-
PowerShell/vscode-powershell #1177 - Add function-advanced snippet. Thanks to Benny1007!
-
PowerShell/vscode-powershell #1179 - Switch onDebug to onDebugResolve:type for better debugging perf.
-
PowerShell/vscode-powershell #1086 - Add tslint to vscode-powershell and address all issues.
-
PowerShell/vscode-powershell #1153 - Add docs for ps remoting in vscode.
-
PowerShell/vscode-powershell #1161 - Check for the expected version of the PowerShell Editor Services module fails because of the wrong function parameters. Thanks to ant-druha!
-
PowerShell/vscode-powershell #1141 - Updated install script minified URL. Thanks to tabs-not-spaces!
-
PowerShell/PowerShellEditorServices #258 - add .Save() to FileContext API.
-
PowerShell/vscode-powershell #1137 - Added 64bit support & vscode-insiders install support. Thanks to tabs-not-spaces!
-
PowerShell/vscode-powershell #1115 - Fixed "Open in ISE" keyboard shortcut from overwriting basic editing keyboard shortcut.
-
PowerShell/vscode-powershell #1111 -
Update examples tasks.json for 2.0.0 schema.
v1.5.1
-
PowerShell/vscode-powershell #1100 - Fixed CodeLens on Pester test invocation fails with "Error: command 'vscode.startDebug' not found".
-
PowerShell/vscode-powershell #1091 - Fixed crash when editing remote file using psedit.
-
PowerShell/vscode-powershell #1084 - Fixed authenticode signature 'HashMismatch' on Start-EditorServices.ps1.
-
PowerShell/vscode-powershell #1078 - Fixed debug adapter process terminating when setting breakpoint in an Untitled file or in a Git diff window.
-
Update download.sh to remove macOS OpenSSL check since PowerShell Core Beta and higher no longer depend on OpenSSL. Thanks to elovelan!
-
Get-Help -ShowWindow will no longer error in the PowerShell Integrated Console. The help window will appear but at the moment, it will appear behind VSCode.
-
Fix language server crash when processing a deep directory structure that exceeds max path.
v1.5.0
Fixes and Improvements
-
PowerShell/vscode-powershell #820 - Added new "Upload Bug Report to GitHub" command to make it easy to post an issue to the vscode-powershell GitHub repo. Thanks to Mark Schill!
-
PowerShell/vscode-powershell #910 - Set-VSCodeHtmlContentView cmdlet now exposes
JavaScriptPaths
andStyleSheetPaths
parameters to allow using JavaScript code and CSS stylesheets in VS Code HTML preview views. -
PowerShell/vscode-powershell #909 - Write-VSCodeHtmlContentView's AppendBodyContent now accepts input from the pipeline
-
PowerShell/vscode-powershell #1071 - Updated session menu to find PowerShell Core installs with the new pwsh.exe path
-
PowerShell/vscode-powershell #842 - psedit can now open empty files in remote sessions
-
PowerShell/vscode-powershell #1040 - Non-PowerShell files opened in remote sessions using psedit can now be saved back to the remote server
-
PowerShell/vscode-powershell #660 - Set/Enable/Disable/Remove-PSBreakpoint commands now cause the VS Code breakpoint UI to be updated while the debugger is active
-
PowerShell/vscode-powershell #625 - Breakpoints are now cleared from the session when the debugger starts so that stale breakpoints from previous sessions are not hit
-
PowerShell/vscode-powershell #1004 - Handle exception case when finding references of a symbol
-
PowerShell/vscode-powershell #942 - Temporary debugging session now does not hang when running "PowerShell Interactive Session" debugging configuration
-
PowerShell/vscode-powershell #917 - Added PowerShell.InvokeRegisteredEditorCommand command to be used from HTML preview views for invoking editor commands registered in PowerShell. Thanks to Kamil Kosek!
-
PowerShell/vscode-powershell #872 - Watch variables with children are now expandable
-
PowerShell/vscode-powershell #1060 - $psEditor.Workspace.NewFile() now works again in VSC 1.18.0 Insiders builds
-
PowerShell/vscode-powershell #1046 - Debugging now works again in VSC 1.18.0 Insiders builds
-
PowerShell/PowerShellEditorServices #342 - Unexpected file URI schemes are now handled more reliably
-
PowerShell/PowerShellEditorServices #396 - Resolved errors being written to Integrated Console when running native applications while transcription is turned on
-
PowerShell/PowerShellEditorServices #529 - Fixed an issue with loading the PowerShellEditorServices module in PowerShell Core 6.0.0-beta3
-
PowerShell/PowerShellEditorServices #533 - Added new $psEditor.GetCommand() method for getting all registered editor commands. Thanks to Kamil Kosek!
-
PowerShell/PowerShellEditorServices #535 - Type information is now exposed on hover for variables in the Variables view
v1.4.3
v1.4.2
- #993 -
powershell.powerShellExePath
using Sysnative path should be automatically corrected when using 64-bit Visual Studio Code - #1008 - Windows PowerShell versions (x64 and x86) are not enumerated correctly when using 64-bit Visual Studio Code
- #1009 - PowerShell version indicator in status bar is missing tooltip #1020 - "Show Session Menu", "Show Integrated Console", and "Restart Current Session" commands should cause PowerShell extension to be activated
- #1020 - "Show Session Menu", "Show Integrated Console", and "Restart Current Session" commands should cause PowerShell extension to be activated
v1.4.1
- PowerShell/PowerShellEditorServices#529 -
Fixed an issue with loading the extension with in PowerShell Core 6.0.0-beta3
v1.4.0
New HTML content view commands enabling custom UI tabs
You can now show editor tabs with custom HTML-based UI by using the new HTML content view commands! This is the first step toward UI extensions for VS Code written in PowerShell.
Here's an example:
$view = New-VSCodeHtmlContentView -Title "My Custom View" -ShowInColumn One
Set-VSCodeHtmlContentView -View $view -Content "<h1>Hello world!</h1>"
Write-VSCodeHtmlContentView $view -Content "<b>I'm adding new content!</b><br />"
And here's the result:
Check out the cmdlet help for the following commands to learn more:
New-VSCodeHtmlContentView
Show-VSCodeHtmlContentView
Close-VSCodeHtmlContentView
Set-VSCodeHtmlContentView
Write-VSCodeHtmlContentView
Since this is a first release, we've restricted the use of JavaScript inside of the HTML. We will add this capability in a future release!
Code formatting setting presets for common styles
We've now added code formatting presets for the most common code style conventions used in the PowerShell community. You can now set the powershell.codeFormatting.preset
setting to one of the following presets:
-
OTBS - Known as the "One True Brace Style". Causes
else
,catch
, and other keywords to be "cuddled", keeping them on the same line as the previous closing brace:if ($var -eq $true) { # Do the thing } else { # Do something else }
-
Stroustrup - Causes beginning curly braces to be placed on the same line as the statement:
if ($var -eq $true) { # Do the thing } else { # Do something else }
-
Allman - All curly braces are preceded by a newline:
if ($var -eq $true) { # Do the thing } else { # Do something else }
-
Custom - Allows full customization of the code formatting settings.
In addition, code formatting now respects your editor.insertSpaces
and editor.tabSize
settings!
Debugging in a temporary PowerShell Integrated Console
We've added the ability to debug your PowerShell code in a temporary PowerShell Integrated Console so that you have a fresh runspace and PowerShell process each time you hit F5!
This setting is necessary if you are developing with PowerShell 5 classes or modules using .NET assemblies because .NET types cannot be reloaded inside of the same PowerShell process. This new setting
saves you from reloading your PowerShell session each time you debug your code!
You can configure this behavior in two ways:
-
Use the
launch.json
configuration parametercreateTemporaryIntegratedConsole
:{ "type": "PowerShell", "request": "launch", "name": "PowerShell Launch Current File in Temporary Console", "script": "${file}", "args": [], "cwd": "${file}", "createTemporaryIntegratedConsole": true },
-
Configure the setting
powershell.debugging.createTemporaryIntegratedConsole
:"powershell.debugging.createTemporaryIntegratedConsole": true,
The default value for these settings is false
, meaning that the temporary console behavior is opt-in.
Configuring the user or workspace setting will cause all debugging sessions to be run in a temporary Integrated Console so it's useful if you would prefer this to be the default behavior. The launch.json
setting overrides the user setting so you can always customize the behavior for a specific launch configuration.
NewFile() API and Out-CurrentFile command
You can now create a new untitled file from within the Integrated Console by using the $psEditor.Workspace.NewFile()
command! Also, you can send the formatted output of any PowerShell command to the current file by using the Out-CurrentFile
command:
Get-Process | Out-CurrentFile
Special thanks to Doug Finke for the contribution!