microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.15k stars 28.53k forks source link

Delayed backspace #188395

Closed skunklem closed 11 months ago

skunklem commented 1 year ago

Type: Bug

When I hit backspace followed very quickly by another character, the other character appears first and then the backspace acts to remove it rather than the intended character. It only happens if I fail to release the backspace key before pressing the next key.

Steps to produce:

  1. depress backspace key
  2. depress any-character-key
  3. release the keys in any order

This happens both with my laptop's built in keyboard and a wireless one. The time between steps 1 and 2 must be quite small, but sometimes that gap seems more noticeable than others. While testing, the gap seemed to get smaller, but I can't be sure that's true. I've only observed the issue in the text editor and couldn't replicate it in the terminal.

VSC version: 1.79.2

VS Code version: Code 1.79.2 (695af097c7bd098fbf017ce3ac85e09bbc5dda06, 2023-06-14T08:57:04.379Z) OS version: Windows_NT x64 10.0.22621 Modes: Remote OS version: Linux x64 4.18.0-240.22.1.el8_3.x86_64

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz (8 x 1992)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|7.85GB (0.97GB free)| |Process Argv|--crash-reporter-id 8c2e971d-7dbf-4455-aa76-c499daa5e836| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|SSH: hpc.uncc.edu| |OS|Linux x64 4.18.0-240.22.1.el8_3.x86_64| |CPUs|Intel(R) Xeon(R) CPU E5-2623 v3 @ 3.00GHz (8 x 2921)| |Memory (System)|62.49GB (36.35GB free)| |VM|0%|
Extensions (27) Extension|Author (truncated)|Version ---|---|--- jupyter-keymap|ms-|1.1.2 remote-containers|ms-|0.299.0 remote-ssh|ms-|0.102.0 remote-ssh-edit|ms-|0.86.0 remote-wsl|ms-|0.79.5 vscode-remote-extensionpack|ms-|0.24.0 remote-explorer|ms-|0.4.0 remote-server|ms-|1.2.1 sublime-keybindings|ms-|4.0.10 open-in-browser|tec|2.0.0 pdf|tom|1.2.2 html-preview-vscode|geo|0.2.5 vscode-gutter-preview|kis|0.30.0 rainbow-csv|mec|3.7.0 isort|ms-|2023.10.1 python|ms-|2023.12.0 vscode-pylance|ms-|2023.7.30 jupyter|ms-|2023.5.1101742258 jupyter-keymap|ms-|1.1.2 jupyter-renderers|ms-|1.0.15 vscode-jupyter-cell-tags|ms-|0.1.8 vscode-jupyter-slideshow|ms-|0.1.5 csv-to-table|php|1.4.0 tabnine-vscode|Tab|3.6.77 intellicode-api-usage-examples|Vis|0.2.7 vscodeintellicode|Vis|1.2.30 markdown-all-in-one|yzh|3.5.1
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263cf:30335440 vscoreces:30445986 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 pythonvs932:30410667 vsclangdc:30486549 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyone:30548225 vsccc:30610678 282f8724:30602487 89544117:30613380 vscrp:30673768 2i9eh265:30646982 showlangstatbar:30737416 vsctsb:30748421 03d35959:30757346 pythonfmttext:30731395 pythoncmvfstrcf:30756944 fixshowwlkth:30771522 showindicator:30785052 pythongtdpath:30769146 i26e3531:30792625 pythonnosmt12:30779714 pythonidxpt:30784022 pythonnoceb:30776495 h7j2d465:30786200 ie5ij191:30792101 dsvsc013cf:30789518 dsvsc014cf:30791936 cmakesidepanelv2:30779593 ```
VSCodeTriageBot commented 1 year ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.80.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

skunklem commented 1 year ago

I just updated to 1.80.1, and that failed to fix the problem.

hediet commented 1 year ago

Can you try in another editor? I cannot reproduce, maybe you have some software that intercepts your key presses.

skunklem commented 1 year ago

For whatever reason, it's not happening right now and also doesn't happen in something like notepad. I have to assume that something causes it to start up when it does. It's a glitch I can notice and deal with if I have to (if it comes back), but I will be curious to see if anyone else has it. I had noticed it only a couple other times in the last month or so before reporting, but it's hard to say how persistent it's been since the quick backspace-replace sequence of events is probably rare. I was just updating some numbers and realized they weren't actually changing.

VSCodeTriageBot commented 11 months ago

Hey @hediet, this issue might need further attention.

@skunklem, you can help us out by closing this issue if the problem no longer exists, or adding more information.

hediet commented 11 months ago

Closing because we cannot reproduce.

skunklem commented 10 months ago

If it helps, here's a video showing the problem as it occurs and another illustrating how the problem doesn't exist in other apps: Delayed backspace in VSC Timely backspace in Notepad If not, I can live with it.