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
{{ message }}
Repository navigation
Canceling prompt is not possible in preview extension #3876
I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
Summary
When you use mandatory parameters and it prompts you to enter value it's impossible to cancel it with CTRL+C or SHIFT+F5. You need to go thru the whole process and then it stops.
Yeah, I can't repro this at all. Not with the latest released preview (nor master) on Windows nor Mac with 5.1 nor 7.2, neither running Test-Me in the IC by itself nor from running it via F5 in the script, even with a breakpoint set.
But it doesn't repro for you... so maybe some of my settings is affecting this.
Try enabling Developer: Toggle Keyboard Shortcuts Troubleshooting, selecting the terminal panel, pressing Ctrl + C and the go back to Output. See what you have there
Yeah conpty solves a lot of input related issues. Even when that bug was still going I just grit my teeth through it as it's fixes were worth the very frustrating bug. I forgot all about that... that was rough 😁
Activity
andyleejordan commentedon Mar 16, 2022
Thanks Przemysław Kłys (@PrzemyslawKlys)! I'm planning to look into this tomorrow.
andyleejordan commentedon Mar 17, 2022
This is not reproducing for me with PowerShell 7.2 on neither macOS nor Windows 11.
andyleejordan commentedon Mar 17, 2022
Hm, it's also not reproducing with Windows PowerShell 5.1 for me either.
andyleejordan commentedon Mar 17, 2022
Yeah, I can't repro this at all. Not with the latest released preview (nor master) on Windows nor Mac with 5.1 nor 7.2, neither running
Test-Mein the IC by itself nor from running it via F5 in the script, even with a breakpoint set.Can you find a more specific way to repro this?
andyleejordan commentedon Mar 17, 2022
andyleejordan commentedon Mar 17, 2022
Funny thing though: executing
Read-Hostdirectly in the IC just loops into a PSReadLine stacktrace over and over, but that's a separate bug 😆23 remaining items
andyleejordan commentedon Apr 13, 2022
Just be very clear that it repros in standard PowerShell terminals in VS Code, no extension required!
PrzemyslawKlys commentedon Apr 13, 2022
But it doesn't repro for you... so maybe some of my settings is affecting this.
SeeminglyScience commentedon Apr 13, 2022
Try enabling
Developer: Toggle Keyboard Shortcuts Troubleshooting, selecting the terminal panel, pressing Ctrl + C and the go back toOutput. See what you have thereHere's mine for instance:
PrzemyslawKlys commentedon Apr 13, 2022
SeeminglyScience commentedon Apr 13, 2022
What about
"terminal.integrated.windowsEnableConpty": true,you got that on?SeeminglyScience commentedon Apr 13, 2022
Also the original issue says 5.1, can you check if 7 has the same behavior?
PrzemyslawKlys commentedon Apr 13, 2022
I have it disabled
"terminal.integrated.windowsEnableConpty": false,after enabling it ---> IT WORKS!PrzemyslawKlys commentedon Apr 13, 2022
I had it disabled based on: #2377
SeeminglyScience commentedon Apr 13, 2022
WOOT
Yeah conpty solves a lot of input related issues. Even when that bug was still going I just grit my teeth through it as it's fixes were worth the very frustrating bug. I forgot all about that... that was rough 😁
PrzemyslawKlys commentedon Apr 13, 2022
Thank you guys! Sorry for this false bug report.
andyleejordan commentedon Apr 13, 2022
It wasn't false! Something was buggy, and I'm glad Patrick Meinecke (@SeeminglyScience) knew what was up, woo 🥳