vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Glitches when backspacing on a remote SSH zsh terminal

Open tekumara opened this issue 2 years ago • 1 comments

Glitches when backspacing on a remote SSH zsh terminal... eg: deleted letters repeat themselves

https://user-images.githubusercontent.com/125105/189907407-63633925-e0a4-4e4e-a5d7-6a1ad0983ff7.mp4

Steps to Reproduce:

  1. Install zsh on a Ubuntu remote with:
  1. complete an autosuggestion and then backspace

Details

Version: 1.71.0 Commit: 784b0177c56c607789f9638da7b6bf3230d47a8c Date: 2022-09-01T07:25:25.516Z Electron: 19.0.12 Chromium: 102.0.5005.167 Node.js: 16.14.2 V8: 10.2.154.15-electron.0 OS: Darwin arm64 21.6.0 Sandboxed: No

  • Remote OS Version: ubuntu
  • Remote Extension/Connection Type: SSH

Does this issue occur when you try this locally?: No - i have the same dotfiles locally and it's fine Does this issue occur when you try this locally and all extensions are disabled?: Not sure

tekumara avatar Sep 13 '22 13:09 tekumara

does setting terminal.integrated.localEchoEnabled: off fix it?

meganrogge avatar Sep 21 '22 22:09 meganrogge

I'm having the exact same issue. I've turned off local echo and will update this ticket if I encounter this issue again, so if I haven't posted again in a few weeks, terminal.integrated.localEchoEnabled: off probably fixes it.

david-morris avatar Oct 06 '22 13:10 david-morris

Disabling local echo also worked for me, thanks.

EDIT: Only works for the first terminal, if I open another (2 terminals open), the second one still has the problem :cry:

AlefCS avatar Nov 21 '22 18:11 AlefCS

I've had to turn on terminal.integrated.localEchoEnabled back on because on Windows -> WSL -> Docker, the latency grows with uptime and the term can become unusable without local echo.

With the newer versions of VSCode, I've found that local echo will correct itself if you wait for the roundtrip, and if it gets stuck, you can force it to update reliably without losing the line by sending ^L/Ctrl+L/Line Feed.

It's a lot more usable. But it's still frequently moving the wrong number of charachters if you hold a key like backspace or the left arrow.

david-morris avatar Nov 22 '22 08:11 david-morris

Merging into https://github.com/microsoft/vscode/issues/126209

Tyriar avatar Dec 09 '22 20:12 Tyriar