Skip to content

Releases: PowerShell/vscode-powershell

v1.7.0

Choose a tag to compare

@rjmholt rjmholt released this 26 Apr 20:16

1.7.0

Wednesday, April 25, 2018

v1.6.0

Choose a tag to compare

@TylerLeonhardt TylerLeonhardt released this 22 Feb 11:57
4914f65

Fixes and Improvements

v1.5.1

Choose a tag to compare

@TylerLeonhardt TylerLeonhardt released this 16 Nov 18:20
8929d69
  • 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

Choose a tag to compare

@daviwil daviwil released this 27 Oct 18:50

Fixes and Improvements

v1.4.3

Choose a tag to compare

@daviwil daviwil released this 13 Sep 15:26
  • #1016 - Fixed a conflict with the "Azure Resource Manager for Visual Studio Code" extension which prevented the PowerShell extension from loading successfully.

v1.4.2

Choose a tag to compare

@daviwil daviwil released this 06 Sep 00:50
  • #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

Choose a tag to compare

@daviwil daviwil released this 22 Jun 21:55

v1.4.0

Choose a tag to compare

@daviwil daviwil released this 21 Jun 16:09

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:

HTML view demo

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 parameter createTemporaryIntegratedConsole:

    {
      "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!

Other fixes and improvements

  • #881 - When you select a different PowerShell version in the session menu, your choice is persisted to the powershell.powerShellExePath setting.

  • #891 - Pester CodeLenses now run tests without string interpolation of test names

v1.3.2

Choose a tag to compare

@daviwil daviwil released this 12 Jun 20:17

Fixes and improvements

v1.3.1

Choose a tag to compare

@daviwil daviwil released this 10 Jun 00:12

Fixes and improvements

  • #850 -
    Fixed an issue where lower-cased "describe" blocks were not identified by
    the CodeLens feature.

  • #851 -
    Fixed an issue where the language server would hang when typing out a describe
    block.

  • #852 -
    Fixed an issue where Pester test names would not be detected correctly when
    other arguments like -Tags were being used on a Describe block.