question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

restarting Integrated Console does not respect powershell.powerShellDefaultVersion setting

See original GitHub issue

System Details

System Details Output

### VSCode version: 1.28.1 3368db6750222d319c851f6d90eb619d886e08f5 x64

### VSCode extensions:
adammaras.overtype@0.2.0
alefragnani.project-manager@9.0.1
DavidAnson.vscode-markdownlint@0.20.0
DotJoshJohnson.xml@2.3.2
eamodio.gitlens@8.5.6
EditorConfig.EditorConfig@0.12.5
EFanZh.graphviz-preview@1.3.0
emmanuelbeziat.vscode-great-icons@2.1.44
fatihacet.gitlab-workflow@1.2.0
Ionide.Ionide-fsharp@3.28.0
Ionide.Ionide-Paket@1.12.0
mohsen1.prettify-json@0.0.3
ms-mssql.mssql@1.4.0
ms-python.python@2018.9.0
ms-vscode.csharp@1.16.2
ms-vscode.PowerShell@1.9.0
ms-vsliveshare.vsliveshare@0.3.790
msjsdiag.debugger-for-chrome@4.10.2
ritwickdey.LiveServer@5.1.1
robinbentley.sass-indented@1.4.9
Shan.code-settings-sync@3.1.2
vstirbu.vscode-mermaid-preview@0.10.1
wesbos.theme-cobalt2@2.1.6
woodywoodsta.vscode-material-syntax-dark@0.1.1
zhuangtongfa.Material-theme@2.17.4


### PSES version: 1.9.0.0

### PowerShell version:

Name                           Value
----                           -----
PSVersion                      5.1.14393.2485
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14393.2485
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Issue Description

I have set the setting"powershell.powerShellDefaultVersion": "Windows PowerShell (x86)"

When I start code and the Powershell Integrated Terminal is and shows the correct Version(5.1 (x86)) image

When I kill the Terminal image

and say YES, I like to restart it.

I am not getting an Windows PowerShell (x86) ,

but a 64bit

image

Attached Logs

Here are diagnostics log logs.zip

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
eedwards-skcommented, Aug 15, 2019

I just ran into this while using multiple powershell versions.

    "powershell.powerShellAdditionalExePaths": [
        {
            "exePath": "/usr/local/bin/pwsh",
            "versionName": "pwsh"
        },
        {
            "exePath": "/usr/local/bin/pwsh-preview",
            "versionName": "pwsh-preview"
        }
    ],
    "powershell.powerShellDefaultVersion": "pwsh-preview"

after closing the integrated terminal using the trashcan, and re-opening it using the warning dialog (as per the issue author), it loads pwsh instead of pwsh-preview:

> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      6.2.2
PSEdition                      Core
GitCommitId                    6.2.2
OS                             Darwin 18.7.0 Darwin Kernel Version 18.7.0: Thu Jun 20 18:42:21 PDT 2019; root:xnu-4903.270.47~4/RELEASE_X86_64
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
0reactions
TylerLeonhardtcommented, Mar 10, 2020

The original issue is fixed now. If you still see this behavior please let us know.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Change Visual Studio Code ... - Stack Overflow
Having this in settings.json allows me to run pwsh as the integrated console "terminal.integrated.shell.windows": "C:\\Program Files\\PowerShell ...
Read more >
Using Visual Studio Code for PowerShell Development
You can do this more easily by resetting the value and using the Settings interface. To set the default PowerShell version, set the...
Read more >
What do you guys do to setup Visual Studio Code for ... - Reddit
Hi everyone! I've been fooling around with Visual Studio Code and the PowerShell extension and wanted to see how everyone else configured ...
Read more >
How to change Visual Studio Code 'Powershell ... - Quora
In Visual Studio Code, you can open an integrated terminal, initially starting at the root of your workspace. This can be convenient as...
Read more >
Getting setup for PowerShell Development - Tech Thoughts
PowerShell ISE no more. In the past the de-facto choice for writing PowerShell code was the PowerShell Integrated Scripting Environment (ISE). It is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found