
Description
System Details
System Details Output
### VSCode version: 1.41.1 26076a4de974ead31f97692a0d32f90d735645c0 x64
### VSCode extensions:
ms-vscode.powershell-preview@2019.12.0
### PSES version: 2.0.0.0
### PowerShell version:
Name Value
---- -----
PSVersion 5.1.17763.771
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17763.771
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Issue Description
-
Launch VSCode
-
Close any open files.
-
Close VSCode.
-
Open a very basic
.ps1
file from a saved workspace.
The console changes to "PowerShell integrated console"
However, the console (terminal or whatever you're calling it these days) is blank.
(Please note, PowerShell Preview extension is installed. I have reported the notification bug in The 'PowerShell' extension is recommended for this file type #2406 )
If I scroll up, I can see your ASCII art:
There is no prompt. (C:\>
). I have to press enter to get a prompt.
- Set focus to the script window.
- Press
f5
to run the script.
As you can see, indentation and output are all over the place. Lines merged and strange indentation.
Even when the output isn't so mangled, the output still starts after the prompt (C:\ >
) as opposed to ISEs behaviour where it is on its own line:
Expected Behaviour
What I want to see is an output like ISE.
The output is on a new line, at the start of the line with no indentation and the prompt is clean, on a new line waiting for the next command.
Actual Behaviour
See "Issue description".
This behaviour isn't something new. It's been happening for ~12 months or more. In both the current and preview version of the PowerShell extension. It's finally annoyed me enough to write this.
I've also noticed other spurious behaviour. For instance, I can start typing in the console and it starts at some random position in the previous output, not after the C:\ >
(greater-than symbol) as one would expect.
This behaviour happens on multiple PCs and laptops. The examples above have been taken from a laptop freshly installed today, with Windows 10 Enterprise 1909.
Attached Logs
Follow the instructions in the troubleshooting docs
about capturing and sending logs.