Description
Hi! First of all, thank you so much for providing Visual Studio Code 🙂 I use it almost every day and it's awesome.
I have a fresh installation of Visual Studio Code (downloaded from https://code.visualstudio.com/sha/download?build=stable&os=linux-x64) on Debian 13 (trixie). No extensions installed. I just installed the OS and VSCode from scratch in a VM.
I noticed the following in the integrated terminal:
$ for i in 1 2 3; do echo Hey; done > /tmp/myfile.txt && cat -A /tmp/myfile.txt
^[]633;E;for i in 1 2 3;626d5160-3c6e-4585-8da3-26c10d43fd2b^G^[]633;C^GHey$
Hey$
Hey$
As you can see, there are some unwanted escape sequences and other characters in the written file. I guess they come from the VSCode shell integration.
When I run the same in a normal Debian Terminal window (i.e. outside VSCode) I get the expected result:
$ for i in 1 2 3; do echo Hey; done > /tmp/myfile.txt && cat -A /tmp/myfile.txt
Hey$
Hey$
Hey$
Also, disabling shell integration ("terminal.integrated.shellIntegration.enabled": false) solves the problem completely.
Just in case, my shell is the Debian's default Bash:
$ bash --version
GNU bash, version 5.2.37(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
...
Also, I personally can happily live with shell integration disabled. This is not a problem at all for me right now. But I thought it would have been nice to report the problem anyway :)
Does this issue occur when all extensions are disabled?: Yes (no extensions installed at all)
- VS Code Version:
$ ~/apps/vscode/vscode/bin/code --version
1.105.1
7d842fb85a0275a4a8e4d7e040d2625abbf7f084
x64
- OS Version:
$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 13 (trixie)"
NAME="Debian GNU/Linux"
VERSION_ID="13"
VERSION="13 (trixie)"
VERSION_CODENAME=trixie
DEBIAN_VERSION_FULL=13.1
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
Steps to Reproduce:
- Make sure your environment matches mine (fresh VSCode, Debian 13, etc.), but I guess this problem also happens in other cases
- Make sure VSCode shell integration is enabled
- Open the integrated terminal and type the aforementioned command
- You should see the result as above