-
Notifications
You must be signed in to change notification settings - Fork 510
Pressing CTRL+C to cancel script doesn't stop debugging in preview extension #3700
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pressing CTRL+C to cancel script doesn't stop debugging in preview extension #3700
Comments
@PrzemyslawKlys Can you link the tracking issue for "Write-Host is fixed yet, and noticed it wasn't"? |
Also can you test if this repros with PowerShell 7.2? While I wired up a stop debugging notification so that stopping the PowerShell debugger informs Code to stop the GUI, I don't think it is supported with PowerShell 5.1 |
It's not only PowerShell 5.1 Notice how I stopped CTRL+C and was able to type stuff in a terminal, while the GUI was showing something different.
I refuse to use preview until this is fixed because it ruins the output of my programs. My modules heavily rely on Write-Host and it makes it really bad. |
Cool, thanks for the information. |
It looks like the wiring up I did in PowerShell/PowerShellEditorServices#1570 was unfortunately not carried over in the pipeline threading rewrite PowerShell/PowerShellEditorServices#1459. |
Prerequisites
Summary
I just installed preview extension to see if Write-Host is fixed yet, and noticed it wasn't, so during a long time script running I press CTRL+C, but while the script stopped, GUI doesn't think so.
PowerShell Version
Visual Studio Code Version
Extension Version
Steps to Reproduce
Visuals
No response
Logs
No response
The text was updated successfully, but these errors were encountered: