Skip to content

Fix #222: Prompt functions hang in editor commands #230

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

Merged
merged 1 commit into from
May 16, 2016
Merged

Conversation

daviwil
Copy link
Contributor

@daviwil daviwil commented May 16, 2016

This change fixes an issue where $host.UI prompt functions do not return
the user's response when run inside of PowerShell editor commands. This
was caused by the HandleInvokeExtensionCommand method returning a Task
that did not complete until after the command completed. The fix was to
not await on completion of the command so that the prompt response has a
chance to come through.


This change is Reviewable

This change fixes an issue where $host.UI prompt functions do not return
the user's response when run inside of PowerShell editor commands.  This
was caused by the HandleInvokeExtensionCommand method returning a Task
that did not complete until after the command completed.  The fix was to
not await on completion of the command so that the prompt response has a
chance to come through.
@daviwil daviwil merged commit 30f4ea8 into master May 16, 2016
@daviwil daviwil deleted the daviwil/fix-222 branch April 26, 2017 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants