Commit a991beb
committed
Fix tasks never completing if cancelled quickly
We were exiting SynchronousTask.ExecuteSynchronously early if the
cancellation was already requested. This was not setting our tcs state
correctly, causing the caller to just fall off without warning.1 parent 5df33bb commit a991beb
File tree
1 file changed
+2
-1
lines changed- src/PowerShellEditorServices/Services/PowerShell/Execution
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
0 commit comments