Commit 9d2a151
committed
Fix disappearing output bug by resetting
What a bug! In PowerShell 5.1 our artificial pipeline for event handling
(among other possible PowerShell tasks) could cause the output to just
disappear. Turns out a bug in 5.1 with the transcript was being triggered.
Scripts without `Out-Default` would get it appended with
`-TranscribeOnly True` in order for the transcription to happen...but the
`TranscribeOnly` field could erroneously not be set back to `false`! This
would cause all output to just "disappear." It was fixed in PowerShell 7,
but we still have to work around it for PowerShell 5.1 by resetting it.TranscribeOnly
1 parent ec81e75 commit 9d2a151
File tree
2 files changed
+43
-2
lines changed- src/PowerShellEditorServices/Services/PowerShell/Host
2 files changed
+43
-2
lines changedLines changed: 30 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
25 | 43 | | |
26 | 44 | | |
27 | 45 | | |
| |||
70 | 88 | | |
71 | 89 | | |
72 | 90 | | |
73 | | - | |
| 91 | + | |
74 | 92 | | |
75 | 93 | | |
76 | 94 | | |
| |||
87 | 105 | | |
88 | 106 | | |
89 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
90 | 119 | | |
91 | 120 | | |
92 | 121 | | |
| |||
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
479 | | - | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
480 | 492 | | |
481 | 493 | | |
482 | 494 | | |
| |||
0 commit comments