You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When selecting text in the editor and using [Terminal > Run Selected Text] to run that part of it in the integrated console, if there’s a pipe that pipes to the next line, then the integrated console displays an error message saying “An empty pipe element is not allowed.”
@DesertBear this is because the stable version of the PowerShell extension cannot handle multiline input on paste or [Terminal > Run Selected Text]. However, this does work in the preview extension because that has PSReadLine support (#1793).
I'm going to close this issue since the work is in preview but pay close attention to #1793 for when PSReadLine makes it into stable.
System Details
Windows 10 – 1903 (18362.356)
PS1 file – UTF-8, CRLF
System Details Output
Issue Description
When selecting text in the editor and using [Terminal > Run Selected Text] to run that part of it in the integrated console, if there’s a pipe that pipes to the next line, then the integrated console displays an error message saying “An empty pipe element is not allowed.”
Example:
Error message:
Screenshot:

Expected Behaviour
The command should run without an “An empty pipe element is not allowed” error.
Actual Behaviour
The integrated console displays an error message saying “An empty pipe element is not allowed.”
The text was updated successfully, but these errors were encountered: