You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I gave up on using VS-Code for Powershell because of this issue about about a month ago. I searched for a solution and found nothing. (and yes, I'm still using Powershell 5.1)
This morning I decided to bring up VScode to see any updates addressed the problem. No change, still looping PID. I did a bit more searching found this thread, which has since been closed. (#4191)
I am reopening this issue because it fully kills the Powershell extension, and the "solution" is buried in a closed thread which is tough to get a good search result on. This should be a hot button issue, fixed with an update. I am sure I am not the only one that found the extension fully blocked without recourse.
Changing the setting "powershell.developer.editorServicesWaitForDebugger": true fixes the problem. I am not sure the "fixes" is the right term, maybe it just bypasses the problem.
This same issue (on my box) persists on both the the current Powershell v2022.10.0 extension and the Powershell Preview v2022.10.1 extension. (I have one disabled, in case I have a problem with the other)
After looping a good number of times, an error pops up on bottom right of VScode saying "Error loading webview: Could not register service workers: InvaliState Error. Failed to register a ServiceWorker: The document is in an invalid state."
From this point, Killing the Terminal (Powershell Extension), gets you back to a simple Powershell terminal without the extension capabilities.
Add assertion to build that bits are built in release configuration and invoke tests in release configuration. ResolvesPowerShell/vscode-powershell#4218 by (correctly and how it was expected in the first place) preventing the developer option to wait for debugger to be in the binary.
Prerequisites
Summary
I gave up on using VS-Code for Powershell because of this issue about about a month ago. I searched for a solution and found nothing. (and yes, I'm still using Powershell 5.1)
This morning I decided to bring up VScode to see any updates addressed the problem. No change, still looping PID. I did a bit more searching found this thread, which has since been closed. (#4191)
I am reopening this issue because it fully kills the Powershell extension, and the "solution" is buried in a closed thread which is tough to get a good search result on. This should be a hot button issue, fixed with an update. I am sure I am not the only one that found the extension fully blocked without recourse.
Changing the setting "powershell.developer.editorServicesWaitForDebugger": true fixes the problem. I am not sure the "fixes" is the right term, maybe it just bypasses the problem.
This same issue (on my box) persists on both the the current Powershell v2022.10.0 extension and the Powershell Preview v2022.10.1 extension. (I have one disabled, in case I have a problem with the other)
After looping a good number of times, an error pops up on bottom right of VScode saying "Error loading webview: Could not register service workers: InvaliState Error. Failed to register a ServiceWorker: The document is in an invalid state."
From this point, Killing the Terminal (Powershell Extension), gets you back to a simple Powershell terminal without the extension capabilities.
PowerShell Version
Visual Studio Code Version
Extension Version
Steps to Reproduce
Load a powershell script or launch VScode with a powershell script reloaded.
Visuals
No response
Logs
No response
The text was updated successfully, but these errors were encountered: