Closed
Description
It doesn't look like the PS Integrated Console in VS Code actually knows how wide it is. In regular PowerShell.exe (or pwsh, if you prefer), you can look in $host.ui.rawui.maxwindowsize.width
and get the number of cols wide the console is. In the PSIC in VS Code, this number is wrong.
If you run write-host $(" " * $host.ui.rawui.maxwindowsize.width) -nonewline; "HERE"
, it should effectively write a blank line (space chars all the way across your screen) and then "HERE". The "HERE" should be on the start of it's own line. This is how it looks in the regular PowerShell console in VS Code.
This is how it looks in the PSIC. I did not resize VS Code between these two screenshots.