microsoft / vscode

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

Comment using "cmd + /" is not working when open file from CLI "code ." #231168

Open kybetter opened 2 days ago

kybetter commented 2 days ago

Type: Bug

Comment using cmd + / is not working when open file from CLI "code ."

And I close the file, and reopen it, "cmd + /" is not working too.

I should type some caractor to active the file, then cmd + / can working.

I open another file to do this option, "cmd + /" is working well, only the default open file is not working.

I guess any file can cause this problem.

From CLI, I open a "vue" project using "code .", I can meet this problem.

"The file" means only the default open file in the project.

VS Code version: Code 1.94.2 (Universal) (384ff7382de624fb94dbaf6da11977bba1ecd427, 2024-10-09T16:08:44.566Z) OS version: Darwin x64 24.0.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz (8 x 2000)| |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
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off| |Load (avg)|3, 7, 7| |Memory (System)|16.00GB (1.48GB free)| |Process Argv|| |Screen Reader|no| |VM|0%|
Extensions (15) Extension|Author (truncated)|Version ---|---|--- better-comments|aar|3.0.2 vscode-sql-formatter|adp|1.4.4 Bookmarks|ale|13.5.0 vscode-eslint|dba|3.0.10 gitlens|eam|15.6.0 EditorConfig|Edi|0.16.4 prettier-vscode|esb|11.0.0 copilot|Git|1.238.0 copilot-chat|Git|0.21.1 todo-tree|Gru|0.0.226 svg|joc|1.5.4 dotenv|mik|1.0.1 hexeditor|ms-|1.10.0 krpano-lang|sun|0.1.0 volar|Vue|2.1.6
RedCMD commented 2 days ago

what language? can you send the file here please and show the locations you've tried to comment/uncomment

kybetter commented 2 days ago

what language? can you send the file here please and show the locations you've tried to comment/uncomment

I guess any file can cause this problem.

From CLI, I open a "vue" project using "code .", I can meet this problem.

"The file" means only the default open file in the project.