microsoft / vscode

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

Keyboard Shortcut Not Getting Deleted Or Edited #189258

Closed Saif-Dawood closed 10 months ago

Saif-Dawood commented 1 year ago

Type: Bug

I was trying to edit the When condition for a shortcut keybinding to a certain extension, though I don't think it was an issue from the extension. I took the when condition from a google search, and it was written in double quotes ( " ). I didn't think much of it and just copy/paste-ed it with the quotes and pressed enter. When I did, the When condition got reset. I just thought it was telling me that it is invalid, so I also didn't think much of it and just inserted the same when condition but without the quotes. However, when I did so, the shortcut keybinding did not get changed, and a new shortcut keybinding got created with the When condition I gave it. I tried deleting the old shortcut keybinding as it was interfering with other shortcuts, but it didn't work. In fact, no change got applied to the shortcut keybinding. Not editing, not reseting, not deleting. Nothing. I tried doing it on another extension's shortcut, and it did the same thing. To be honest, I didn't try it on a built-in shortcut because I feared that it would mess with a lot of things, but yeah I still don't think it is an error from the extension itself

VS Code version: Code 1.80.2 (2ccd690cbff1569e4a83d7c43d45101f817401dc, 2023-07-27T20:41:52.615Z) OS version: Linux x64 5.19.0-50-generic snap Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-3630QM CPU @ 2.40GHz (8 x 3192)| |GPU Status|2d_canvas: unavailable_software
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: disabled_off| |Load (avg)|2, 1, 1| |Memory (System)|5.73GB (2.24GB free)| |Process Argv|--no-sandbox --force-user-env --unity-launch --crash-reporter-id a8832202-2c2e-4ddd-9414-40e1b35a8949| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|ubuntu| |XDG_CURRENT_DESKTOP|Unity| |XDG_SESSION_DESKTOP|ubuntu| |XDG_SESSION_TYPE|wayland|
Extensions (54) Extension|Author (truncated)|Version ---|---|--- python-image-preview|076|0.1.2 phpserver|bra|3.0.2 ddb50|CS5|1.1.1 composer-php-vscode|DEV|1.36.13417 phptools-vscode|DEV|1.36.13417 profiler-php-vscode|DEV|1.36.13417 competitive-programming-helper|Div|5.13.0 python-environment-manager|don|1.0.4 python-extension-pack|don|1.7.0 gitlens|eam|14.1.1 prettier-vscode|esb|9.19.0 auto-close-tag|for|0.5.14 auto-rename-tag|for|0.1.10 c-cpp-runner|fra|7.0.4 vscode-pull-request-github|Git|0.68.1 OdooSnippets|jig|1.5.0 vsc-python-indent|Kev|1.18.0 mongodb-vscode|mon|1.1.0 csharp|ms-|1.26.0 vscode-dotnet-runtime|ms-|1.6.0 vscode-edge-devtools|ms-|2.1.3 isort|ms-|2023.10.1 mypy-type-checker|ms-|2023.0.0 python|ms-|2023.12.0 vscode-pylance|ms-|2023.7.40 jupyter|ms-|2023.6.1101941928 jupyter-keymap|ms-|1.1.2 jupyter-renderers|ms-|1.0.17 vscode-jupyter-cell-tags|ms-|0.1.8 vscode-jupyter-slideshow|ms-|0.1.5 remote-containers|ms-|0.299.0 remote-ssh|ms-|0.102.0 remote-ssh-edit|ms-|0.86.0 remote-wsl|ms-|0.80.2 cmake-tools|ms-|1.14.34 cpptools|ms-|1.16.3 cpptools-extension-pack|ms-|1.3.0 js-debug-nightly|ms-|2023.7.2417 live-server|ms-|0.4.9 remote-explorer|ms-|0.4.1 vsliveshare|ms-|1.0.5877 vsliveshare-audio|ms-|0.1.93 php-docblocker|nei|2.7.0 vscode-xml|red|0.26.1 vs-code-prettier-eslint|rve|5.1.0 vsc-odoo-development|sca|0.2.0 vscode-odoo|tri|0.6.0 cmake|twx|0.0.17 vscode-lldb|vad|1.9.2 vscode-java-debug|vsc|0.52.0 JavaScriptSnippets|xab|1.8.0 php-debug|xde|1.33.0 php-pack|xde|1.0.3 php-intellisense|zob|1.3.0 (1 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscorecescf:30445987 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 pythonvs932:30410667 vsclangdc:30486549 c4g48928:30535728 dsvsc012:30540252 pynewext54:30695312 azure-dev_surveyone:30548225 3biah626:30602489 f6dab269:30613381 showlangstatbar:30737416 vsctsb:30748421 03d35959:30757346 7ij38806:30736111 pythonfmttext:30731395 pythoncmvfstrcf:30756944 fixshowwlkth:30771522 showindicator:30785052 pythongtdpath:30769146 i26e3531:30792625 gsofa:30797621 pythonnosmt12:30797651 pythonnoceb:30797650 e537b577:30795824 dsvsc013:30795093 dsvsc014cf:30797590 ```
ulugbekna commented 10 months ago

Could you enable screencast mode (invoke command "Preferences: Toggle Screencast Mode" from the command palette (press F1)) and provide a screencast of what you're doing?

vscodenpa commented 10 months ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

Saif-Dawood commented 10 months ago

Very sorry for being late. I was busy with my college work. Anyhow, here is the screen cast. I managed to record a few more bugs that might be related to it (eg. When reseting, a new shortcut gets created with the default shortcut. When deleting, while selecting the "F5" shortcut, it deletes the newly created one "Ctrl+F5", etc) Screencast from 12-16-2023 07:06:44 PM.webm

Saif-Dawood commented 10 months ago

I would like to kindly request a reopening of this issue as the bug still exists and I just wasn't available for response earlier. Thank you.

ulugbekna commented 10 months ago

duplicate of https://github.com/microsoft/vscode/issues/193521