Shell Integration Script for Powershell 7 Terminals (shellIntegration.ps1) is adding junk data into the console after typing more than one character. #236841
Labels
new release
Issues found in a recent release of VS Code
Does this issue occur when all extensions are disabled?: Yes/No
Yes
Full VSCode Version Details:
Steps to Reproduce:
Here is a screen recording of the behavior:
https://i.imgur.com/PUNU2n9.mp4
Here's a screenshot of what's being injected into the terminal:
So I opened
C:\Users\username\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\contrib\terminal\common\scripts\shellIntegration.ps1
.If I add a return statement immediately at the top of this file and restart VSCode, the issue no longer occurs. But I have yet to figure out what part of the code is causing this behavior.
I'm wondering if this has anything to do with the PSReadLine module, because the
shellIntegration.ps1
script is doing a lot of interaction with it.Here are my terminal settings in settings.json:
The issue still occurs after disabling all extensions.
I also tried deleting
C:\Users\futur\.vscode\extensions\ms-vscode.powershell-2024.5.2\modules\PSReadLine
after reading another post about someone having a similar issue, but this didn't fix the problem.I really can't provide more information on how to reproduce this issue since it's a bit baffling. But I'm sure it has something to do with the
shellIntegration.ps1
script that's added to the command line of new terminal instances.The text was updated successfully, but these errors were encountered: