vscode-powershell icon indicating copy to clipboard operation
vscode-powershell copied to clipboard

PowerShell extension doesn't start on slow machines

Open SetTrend opened this issue 1 year ago • 0 comments

Prerequisites

  • [X] I have written a descriptive issue title.
  • [X] I have searched all open and closed issues to ensure it has not already been reported.
  • [X] I have read the troubleshooting guide.
  • [X] I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
  • [X] I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
  • [X] If this is a security issue, I have read the security issue reporting guidance.

Summary

Whenever I start VS Code for the first time in a Windows session, PowerShell extension starts with a warning.

Moreover, closing the terminal session results in the below mentioned error.

Plus, the PowerShell extension banner message is looking odd:

PowerShell extension banner

PowerShell Version

Name                           Value
----                           -----
PSVersion                      7.4.4
PSEdition                      Core
GitCommitId                    7.4.4
OS                             Microsoft Windows 10.0.19045
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0.}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visual Studio Code Version

1.92.1
x64

Extension Version

[email protected]

Steps to Reproduce

  1. Launch a Windows session on a slow machine
  2. Right-click a PowerShell file and select "Open in Visual Studio Code" context menu item.
  3. Immediately open the terminal window using the keyboard shortcut <CTRL>+<Ö>.

Visuals

No response

Logs

21.8.2024 16:17:03 [NORMAL] - Visual Studio Code: v1.92.1 64-bit on Windows 64-bit

21.8.2024 16:17:03 [NORMAL] - PowerShell Extension: v2024.2.2

21.8.2024 16:17:03 [NORMAL] - Starting 'PowerShell (x64)' at: C:\Program Files\PowerShell\7\pwsh.exe

21.8.2024 16:17:04 [NORMAL] - PowerShell process started with PID: 9012

21.8.2024 16:17:07 [WARNING] - PowerShell process terminated or Extension Terminal was closed, PID: 9012

21.8.2024 16:17:08 [ERROR] - Extension Terminal is undefined.

21.8.2024 16:17:09 [ERROR] - PowerShell Language Server process didn't start!

SetTrend avatar Aug 21 '24 14:08 SetTrend