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.

PowerShell Integrated Console does't start: Running the contributed command: 'PowerShell.ShowSessionMenu' failed.

See original GitHub issue

Issue Description

The PowerShell Integrated Console does not start at all. The problem occurs with every single start of VS Code on my system. So I didn’t manage to get the PowerShell Integrated Console running once. There is a notification saying:

Running the contributed command: 'PowerShell.ShowSessionMenu' failed.

Screenshot grafik

I have test the PowerShell and the PowerShell Preview extension seperatly and the problem occurs with both.

This is a fresh portable installation of Visual Studio Code with (only) the PowerShell extension. Although I have also tested the global installation of Visual Studio Code on my Windows system. I deleted the directories %USERPROFILE%\AppData\Roaming\Code and %USERPROFILE%\.vscode in advance to reset VS Code. The results were the same as with the portable version.

I have added all required and some extra information down below according to the template. Please tell me if I can provide any more useful information!

Attached Logs

.\VSCode-win32-x64-1.53.2\data\extensions\ms-vscode.powershell-2020.6.0\logs\1613468378-ed04d92c-7e5f-45a0-bfa3-6a2d61483c0c1613468364188:

EditorServices.log StartEditorServices.log vscode-powershell.log

Output of the PowerShell Integrated Console in Visual Studio Code:

Output.txt

Environment Information

Visual Studio Code

Name Version
Operating System Windows_NT x64 10.0.17763
VSCode 1.53.2
PowerShell Extension Version 2020.6.0

Installation directory (portable mode)

|- VSCode-win32-x64-1.53.2
|   |- Code.exe
|   |- data
|   |   |- user-data
|   |   |   |- ...
|   |   |- extensions
|   |   |   |- ...
|   |- ...

PowerShell Information

Name Value
PSVersion 5.1.17763.1490
PSEdition Desktop
PSCompatibleVersions 1.0 2.0 3.0 4.0 5.0 5.1.17763.1490
BuildVersion 10.0.17763.1490
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Visual Studio Code Extensions

Tested with both, the PowerShell and the PowerShell Preview extension seperatly.

Test 1

Extension Author Version
powershell ms-vscode 2020.6.0

Test 2

Extension Author Version
powershell-preview ms-vscode 2020.9.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:22 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
GuruGarrettcommented, Feb 16, 2021

I have found I can temporarily resolve the issue on my system by deleting the contents of the following directory, then it will work once:

%AppData%\Code - Insiders\User\workspaceStorage

If I close VS Code or kill the terminal, I need to clear that directory again. For anyone else with this issue, it is a temporary workaround at least.

2reactions
theCoffeeProjectcommented, Feb 17, 2021

I just noticed that somebody created an issue about the exact same problem right before me (#3186), but I hope the additional information I provided is still useful.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running the contributed command: 'PowerShell ... - GitHub
I am since seeing the error "Running the contributed command: 'PowerShell.ShowSessionMenu' failed." whenever vscode starts up.
Read more >
PowerShell/vscode-powershell - Gitter
... i can't load Powershell 5.1 in vscode's integrated console. All i get is "Running the contributed command: 'PowerShell.ShowSessionMenu' failed.".
Read more >
PowerShell editing with Visual Studio Code
Learn about using PowerShell in Visual Studio Code. ... Or run the PowerShell: Show Session Menu command from the Command Palette ...
Read more >
How to replicate the ISE experience in Visual Studio Code
To do this, open the command palette ( F1 OR Ctrl + Shift + P OR Cmd + Shift + P on macOS)...
Read more >
Visual Studio Code PowerShell terminal
In Visual Studio Code, you can open an integrated terminal, ... I am since seeing the error "Running the contributed command: 'PowerShell.ShowSessionMenu' ...
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