microsoft / vscode

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

Code comment problem #208281

Open zheng1224 opened 7 months ago

zheng1224 commented 7 months ago

Type: Bug

After entering vscode at first, do nothing, use ctrl+/ to comment the line of code, it cannot be commented, do other operations such as deleting characters or it is OK again

VS Code version: Code 1.87.2 (863d2581ecda6849923a2118d93a088b0745d9d6, 2024-03-08T15:20:17.278Z) OS version: Windows_NT x64 10.0.22621 Modes:

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 5 5600H with Radeon Graphics (12 x 3294)| |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)|15.37GB (2.67GB free)| |Process Argv|--crash-reporter-id 511113a2-e84f-43e7-a933-686d5c345c0f| |Screen Reader|no| |VM|67%|
Extensions (11) Extension|Author (truncated)|Version ---|---|--- icons-carbon|ant|0.2.6 vscode-html-css|ecm|2.0.9 file-icons|fil|1.1.0 auto-close-tag|for|0.5.15 code-runner|for|0.12.1 vue-alias-skip|lih|0.0.25 vscode-language-pack-zh-hans|MS-|1.87.2024031309 vetur|oct|0.37.3 LiveServer|rit|5.7.9 open-in-browser|tec|2.0.0 markdown-all-in-one|yzh|3.6.2 (1 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscoreces:30445986 vscod805cf:30301675 binariesv615:30325510 vsaa593:30376534 py29gd2263:30899288 vscaat:30438848 c4g48928:30535728 azure-dev_surveyone:30548225 a9j8j154:30646983 962ge761:30959799 pythongtdpath:30769146 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 h48ei257:30992801 pythontbext0:30879054 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 pydisww1:30991133 cppperfcontrol:30979541 d34g3935:30971562 fegfb526:30981948 bg6jg535:30979843 ccp2r3:30993541 dsvsc020:30976470 gee8j676:30988843 ```
gjsjohnmurray commented 7 months ago

What code language is the editor set to use? See the indicator at the right-hand end of the status bar.

zheng1224 commented 7 months ago

Write front-end code in a.vue file, even if you don't do anything else after opening the editor, you can't comment the code by using ctrl+/ first, and you can change lines or do other editing operations

ladyruo commented 7 months ago

I can't do single line comments inside .vue pages either, and after I disabled all the plugins, the single line comment feature still doesn't work correctly

ladyruo commented 7 months ago

The version number is 1.87.2

ladyruo commented 7 months ago

@gjsjohnmurray Also, the single line comment feature works fine on .html pages, but it doesn't work on .vue pages

gjsjohnmurray commented 7 months ago

What code language is the editor set to use? See the indicator at the right-hand end of the status bar.

I haven't seen an answer to this yet.

ladyruo commented 7 months ago

What code language is the editor set to use? See the indicator at the right-hand end of the status bar.

I haven't seen an answer to this yet.

Write front-end code in a.vue file, even if you don't do anything else after opening the editor, you can't comment the code by using ctrl+/ first, and you can change lines or do other editing operations

Write front-end code in a.vue file, even if you don't do anything else after opening the editor, you can't comment the code by using ctrl+/ first, and you can change lines or do other editing operations @gjsjohnmurray he said this