Commit 7f72d87
committed
Fix #222: Prompt functions hang in editor commands
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.1 parent ba27e4a commit 7f72d87
File tree
1 file changed
+5
-1
lines changed- src/PowerShellEditorServices.Protocol/Server
1 file changed
+5
-1
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
196 | 200 | | |
197 | 201 | | |
198 | 202 | | |
| |||
207 | 211 | | |
208 | 212 | | |
209 | 213 | | |
210 | | - | |
| 214 | + | |
211 | 215 | | |
212 | 216 | | |
213 | 217 | | |
| |||
0 commit comments