-
Notifications
You must be signed in to change notification settings - Fork 234
Display prompt after F8
finishes
#1690
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
Conversation
I believe this was the original intention, and indeed, debugging shows that it is the correct behavior. On F8 we need to skip the next prompt so the evaluated task runs instead, and then the REPL correctly prompts after the evaluation is finished.
@SeeminglyScience Could you test this out? I'm trying to think of / find any unintended consequences, but it sure seems to have solved the problem. |
Ditto @JustinGrote |
@SeeminglyScience Have you had a chance to look at this? |
I haven't gotten a chance to test myself yet. I'm inclined to say this will be fine though and was just an oversight. I believe previously we were purposefully not waiting for completion but I don't think the architecture requires it anymore. One thing I'd check is that F8ing |
I couldn't get it to deadlock 👌 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This fixes PowerShell/vscode-powershell#3685 by awaiting the task spawned by the evaluate handler (triggered by F8) and skipping the "next" prompt that actually should have been interrupted by that foreground task.