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
built-in powershell terminal emits control characters when the paths are long #212130
Comments
maybe related #211922 did this just start happening for you? |
I don't think so. The path's in my example do not contain any special characters. I am also not using starship
I only recently started working with powershell scripts that were a) deeply nested, and b) required their own lengthly paths as parameters. But I have been dealing with other powershell scripts with lengthy parameter lists and values and had not seen this behavior. it seems limited to when long paths are involved. |
I think this is related to #210353 |
I just posted this on #210353, but in 1.89, as a workaround i replaced ~\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\contrib\terminal\browser\media\shellIntegration.ps1 with the shellIntegration.ps1 from commit 1e790d7 and it resolves the issue. Sorry I can't dig in further and help -- if I have time I'll try building VS code on my personal PC and see if I can help pinpoint it. |
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
These look correct
note the "63-b542a92b556d" emitted in the 2nd instance, and "el1\x5cLevel2\x5cLevel3\x5cLevel4\x5cLevel5\x5cLevel6\x5cLevel7\x5cLevel8\x5cLevel9\x5canyfile12.txt";86b66494-a1e9-4bfb-b163-b542a92b556d" emitted in the 3rd instance
The first response looks ok, but as we add parameters with long paths, we start getting more and more control characters emitted to the console
Some observations:
The text was updated successfully, but these errors were encountered: