-
Notifications
You must be signed in to change notification settings - Fork 311
ANSI codes appearing as autocomplete visual artifacting #1558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I wonder if you can integrate windows terminal into vscode because that’s the true fix for ansi codes appearing. Sent with GitHawk |
Visual Studio Code implements its own terminal for everything using xterm.js. It's also cross-platform so I don't think they can integrate a Windows-only component. |
If they were running a build of Windows that could install terminal (they appear to be running server 2k12), the escape codes would work fine anyway. iirc PSReadLine has a check for when the OS doesn't support ANSI escapes and should revert to a simplier renderer. Some possibilities:
I never really looked at the code for the simple interface so some of the above might be nonsensical. |
Thanks for reporting the issue. The issue has been fixed in the master branch (#1496), by making the predictive suggestion feature off by default. The predictive suggestion feature can be turned on by |
Environment
Exception report
Steps to reproduce
Open Latest VSCode + Powershell-Preview extension in RDP session. Attempt to type any cmdlet in the Integrated Shell.
Expected behavior
Autocomplete working properly, showing potential commands.
Actual behavior
Observe that weird auto-completed artifacting appears, which seems to include ANSI codes. In the below image I had Typed "Get-"

The text was updated successfully, but these errors were encountered: