Commit c03b7fb
committed
Fix evaluation of prompt function output to remove unneeded "PS>"
This change fixes an issue in the integrated console where the result of
a user's custom prompt function would not be interpreted correctly,
causing the default prompt string of "PS>" to be written out when it
wasn't needed. The fix is to expect a PSObject result rather than
object so that we can evaluate the inner object's type correctly.
Resolves PowerShell/vscode-powershell#808.1 parent b2d0974 commit c03b7fb
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
| 228 | + | |
228 | 229 | | |
229 | 230 | | |
230 | 231 | | |
| |||
0 commit comments