-
Notifications
You must be signed in to change notification settings - Fork 511
Canceling prompt is not possible in preview extension #3876
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
Comments
Thanks @PrzemyslawKlys! I'm planning to look into this tomorrow. |
This is not reproducing for me with PowerShell 7.2 on neither macOS nor Windows 11. |
Hm, it's also not reproducing with Windows PowerShell 5.1 for me either. |
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 Can you find a more specific way to repro this? |
|
Funny thing though: executing |
@PrzemyslawKlys Can you test this build? |
Ok, I have no idea what's happened to your environment there, oops 😅 but I tried again, on Windows with PS 5.1 too, and can always Ctrl-C to cancel |
I still can't repro this at all. How up-to-date is your Windows environment @PrzemyslawKlys, and is this a major blocker for you? |
I'm on cutting edge Windows 11 ;) It's not a blocker at all. Lately, I'm really enjoying the plugin and its features. don't have to restart, everything seems to work. This is one of those things that shows up, but I know I can just press CTRL+C, and a few times enter and it will work ;) I typed the command, it prompted - i typed text ... pressed CTRL+C, it didn't work, I pressed enter - and as you see below it didn't assign the value to anything. That means CTRL+C actually worked, but I think it's related to other issue that sometimes you need to press ENTER to see the prompt when the script is "done". It may be just visual bug. |
It's strange, for sure, and I want to get it fixed. Thank you for the kind words, we're really working on launching this soon to the stable channel. We know it's not perfect, but are increasingly convinced that it's much better than it was. Preparing hopefully the second-to-last preview right now! |
Ok, it's a long shot, but does this continue to repro with the new release yesterday? v2022.3.1-preview. |
Hm, 2.2.2 is the latest. I wish I could repro this myself 🥲 |
If you need any logs I can provide ;) If you need any other help - i'm here... |
Hi there, we just released v2022.4.0-preview! Could you please try PowerShell Preview for VS Code and check if this is fixed? I could still never repro it myself, but I implemented what I hope to be a much better way to cancel |
Dumb question, but what about other terminals in Code, or other PowerShell versions? At this point I feel like there's something configured in Code that's taken that key handler, and I still can't repro 😭 Underneath the covers, it really is just |
You're correct. If I paste Read-Host into a separate terminal in code it acts the same. So the big question is - how to track it ;) |
AH! I hate to do this to you...but file a bug with Code. |
Just be very clear that it repros in standard PowerShell terminals in VS Code, no extension required! |
But it doesn't repro for you... so maybe some of my settings is affecting this. |
What about |
Also the original issue says 5.1, can you check if 7 has the same behavior? |
I have it disabled |
I had it disabled based on: #2377 |
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 😁 |
Thank you guys! Sorry for this false bug report. |
It wasn't false! Something was buggy, and I'm glad @SeeminglyScience knew what was up, woo 🥳 |
Prerequisites
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.
Same thing applies to
Read-Host
PowerShell Version
Visual Studio Code Version
Extension Version
Steps to Reproduce
Read-Host
Visuals
No response
Logs
No response
The text was updated successfully, but these errors were encountered: