PowerShell VSCode extension messes up output of Test-NetConnection
See original GitHub issueUsing Test-NetConnection
from the terminal and the output is messed up.
I originally filed this issue with VS Code: (https://github.com/microsoft/vscode/issues/114157#issuecomment-765457813 ) That issue has all the details and an MP4 showing the issue. I tried using different rendering but to no avail.
System Details
Using Windows 10, 21292.
VSCode version: 1.52.1 ea3859d4ba2f3e577a159bc91e3074c5d85c0523 x64
VSCode extensions:
AlanWalk.markdown-toc@1.5.6 arcticicestudio.nord-visual-studio-code@0.15.0 bierner.emojisense@0.8.0 bierner.markdown-checkbox@0.1.3 codespaces-contrib.codeswing@0.0.7 DavidAnson.vscode-markdownlint@0.38.0 DotJoshJohnson.xml@2.5.1 GitHub.vscode-pull-request-github@0.22.0 hediet.vscode-drawio@1.2.0 liviuschera.noctis@10.39.1 ms-dotnettools.csharp@1.23.8 ms-vscode-remote.remote-wsl@0.52.0 ms-vscode.powershell@2020.6.0 ms-vscode.powershell-preview@2020.9.0 streetsidesoftware.code-spell-checker@1.10.2 teabyii.ayu@0.20.1 vsls-contrib.codetour@0.0.42 vsls-contrib.gistfs@0.2.1 yzhang.markdown-all-in-one@3.4.0
PSES version:
PowerShell version:
Name Value
PSVersion 7.1.1 PSEdition Core GitCommitId 7.1.1 OS Microsoft Windows 10.0.21292 Platform Win32NT PSCompatibleVersions {1.0, 2.0, 3.0, 4.0, 5.0, 5.1.10032.0, 6.0.0, 6.1.0, 6.2.0, 7.0.0, 7.1.1} PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 WSManStackVersion 3.0
System Details Output
Issue Description
I am experiencing a problem with output being all messed up.
Expected Behaviour
I expected to see the output rendered the same was as in MS Terminal, the Console, and VS Code without this extension, like this
PS C:\Foo> Test-Connection dc1
Destination: dc1
Ping Source Address Latency BufferSize Status
(ms) (B)
---- ------ ------- ------- ---------- ------
1 DC1 fe80::4862:871f:7f1e:6bf 0 32 Success
2 DC1 fe80::4862:871f:7f1e:6bf 0 32 Success
3 DC1 fe80::4862:871f:7f1e:6bf 0 32 Success
4 DC1 fe80::4862:871f:7f1e:6bf 0 32 Success
Actual Behaviour
PS C:\Foo> Test-NetConnection -ComputerName DC1
PS C:\Foo>
PingReplyDetails (RTT) : 0 ms
See the issue details in the VS Code Repo
Attached Logs
none - happy to provide them if needed.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (3 by maintainers)
Top GitHub Comments
Having done some preliminary testing, the result are now much improved and inline with expectations.
Thanks.
I have an important use case which is I am writing another book on PowerShell. For this, using Out-Host is not really all that helpful as I need to capture what the reader is going to type and see. I want to avoid things like this otherwise helpful workaround for the book. It is hard to explain! But thanks for the suggestion.
For now, I am just not using the Integrated Console and the output is fine. As soon as there is a fix, I can move back to using the Integrated console.
Is there any time line on a fix?