microsoft / vscode

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

CRTL + / suddenly stops working #210928

Closed dacs30 closed 6 months ago

dacs30 commented 7 months ago

Type: Bug

I haven't found a step by step yet, but it stops working after using it for a couple times.

The only way to get back to work is by closing and opening the app again.

VS Code version: Code 1.88.1 (e170252f762678dec6ca2cc69aba1570769a5d39, 2024-04-10T17:41:02.734Z) OS version: Windows_NT x64 10.0.22631 Modes:

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen Threadripper PRO 5945WX 12-Cores (24 x 4092)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
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
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|127.86GB (74.61GB free)| |Process Argv|--crash-reporter-id 5b2f1a60-c915-480f-a063-68cc167b480e| |Screen Reader|no| |VM|0%|
Extensions (30) Extension|Author (truncated)|Version ---|---|--- augloop-vscode-extension|Aug|1.1.245 markdown-mermaid|bie|1.22.0 vscode-markdownlint|Dav|0.55.0 vscode-eslint|dba|2.4.4 kusto|don|0.4.4 gitlens|eam|14.9.0 EditorConfig|Edi|0.16.4 prettier-vscode|esb|10.4.0 copilot|Git|1.180.831 copilot-chat|Git|0.14.1 azure-dev|ms-|0.8.1 csdevkit|ms-|1.4.29 csharp|ms-|2.23.15 vscode-dotnet-runtime|ms-|2.0.3 vscodeintellicode-csharp|ms-|2.0.25 vscode-edge-devtools|ms-|2.1.5 debugpy|ms-|2024.4.0 python|ms-|2024.4.1 vscode-pylance|ms-|2024.4.1 java|red|1.29.0 code-spell-checker|str|3.0.1 intellicode-api-usage-examples|Vis|0.2.8 vscodeintellicode|Vis|1.3.1 vscode-java-debug|vsc|0.57.0 vscode-java-dependency|vsc|0.23.6 vscode-java-pack|vsc|0.26.0 vscode-java-test|vsc|0.41.0 vscode-maven|vsc|0.44.0 markdown-all-in-one|yzh|3.6.2 material-theme|zhu|3.17.0 (1 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492:30256859 vscod805cf:30301675 binariesv615:30325510 vsaa593:30376534 py29gd2263:30899288 vscaat:30438848 c4g48928:30535728 azure-dev_surveyone:30548225 a9j8j154:30646983 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 h48ei257:31000450 pythontbext0:30879054 accentitlementst:30995554 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 d34g3935:30971562 fegfb526:30981948 bg6jg535:30979843 ccp2r6:30993542 dsvsc020:30976470 pythonait:31006305 gee8j676:31009558 chatpanelc:31018788 dsvsc021:30996838 0ee40948:31013168 ```
dacs30 commented 7 months ago

Follow up on that: seems to be caused by Github Copilot. We should probably transfer this bug to them, if possible. Otherwise, I will just create a new bug for it and assign it to their team.

Hemil31 commented 7 months ago

but how much time doing this

dacs30 commented 7 months ago

@Hemil31 , after doing Ctrl + / about five times you should get into the repro state. To mitigate the problem I just removed the other Ctrl + / key bindings that were there (including Copilot) and left only the commenting one. Working for now.

chall1123 commented 7 months ago

@dacs30 hello, How to modify the format of ctrl+/ comments from // to ///<, and block comments from/ / to /** /. Does it currently support commmet format customization

chrmarti commented 6 months ago

@jrieken Maybe a problem with the context key? Image

vscodenpa commented 6 months ago

This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. If you don't know which extension is causing the problem, you can run Help: Start extension bisect from the command palette (F1) to help identify the problem extension.

Happy Coding!