Skip to content

Windows PowerShell versions not enumerated correctly in 64-bit VS Code #1008

Closed
@brwilkinson

Description

@brwilkinson

code -v
1.15.1
41abd21afdf7424c89319ee7cb0445cc6f376959

vscode

$pseditor.EditorServicesVersion
Major Minor Build Revision


1 4 1 0

code --list-extensions --show-versions
bradygaster.azuretoolsforvscode@1.2.9
donjayamanne.python@0.7.0
eriklynd.json-tools@1.0.2
ipedrazas.kubernetes-snippets@0.1.3
johnpapa.azure-functions-tools@0.3.0
ms-vscode.csharp@1.12.1
ms-vscode.PowerShell@1.4.1
msazurermtools.azurerm-vscode-tools@0.3.6
PeterJausovec.vscode-docker@0.0.16
PKief.material-icon-theme@2.2.0

$psversiontable
Name Value


PSVersion 5.1.16273.1000
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.16273.1000
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

System Details

Windows 10 Insider

Issue Description

When I set the default powershell exe path to v 6 beta, I cannot swap back to ps 5.1

"powershell.powerShellExePath": "C:\Program Files\PowerShell\6.0.0-beta.5\powershell.exe",

If I comment out that property and just launch defaults, I can them swap between versions.

I used to be able to swap between when using v6Beta, however this stopped working.

vscode_powershell

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions