microsoft / vscode

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

Emmet class expansions retain period #233969

Open lukef opened 6 hours ago

lukef commented 6 hours ago

Type: Bug

If you expand an Emmet class shortcut (e.g.: .something) vscode will expand the entry to .<div class="something"></div>. The period at the start is incorrect.

Image

Image

VS Code version: Code 1.95.2 (e8653663e8840adaf45af01eab5c627a5af81807, 2024-11-07T11:07:22.054Z) OS version: Linux x64 6.11.7-300.fc41.x86_64 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-9700T CPU @ 2.00GHz (8 x 3600)| |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: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
webnn: disabled_off| |Load (avg)|2, 1, 1| |Memory (System)|31.18GB (21.71GB free)| |Process Argv|. --crash-reporter-id 0ca08db6-6cd2-4398-b705-c59f2340e5d3| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|gnome| |XDG_CURRENT_DESKTOP|GNOME| |XDG_SESSION_DESKTOP|gnome| |XDG_SESSION_TYPE|wayland|
Extensions (58) Extension|Author (truncated)|Version ---|---|--- language-x86-64-assembly|13x|3.1.4 icons-carbon|ant|0.2.6 vscode-eslint|dba|3.0.10 EditorConfig|Edi|0.16.4 prettier-vscode|esb|11.0.0 vscode-firefox-debug|fir|2.9.11 go|gol|0.42.1 lua-plus|jep|1.1.1 vscode-rdbg|Koi|0.2.2 cortex-debug|mar|1.12.1 debug-tracker-vscode|mcu|0.0.15 memory-view|mcu|0.0.25 peripheral-viewer|mcu|1.4.6 rtos-views|mcu|0.0.7 dotenv|mik|1.0.1 vscode-docker|ms-|1.29.3 debugpy|ms-|2024.12.0 python|ms-|2024.20.0 vscode-pylance|ms-|2024.11.2 remote-containers|ms-|0.388.0 remote-ssh|ms-|0.115.1 remote-ssh-edit|ms-|0.87.0 remote-wsl|ms-|0.88.5 vscode-remote-extensionpack|ms-|0.26.0 cpptools|ms-|1.22.11 cpptools-extension-pack|ms-|1.3.0 makefile-tools|ms-|0.11.13 powershell|ms-|2024.4.0 remote-explorer|ms-|0.4.3 remote-server|ms-|1.5.2 vscode-serial-monitor|ms-|0.13.1 playdate|Ort|0.9.3 pico-w-go|pau|4.0.6 material-icon-theme|PKi|5.14.1 java|red|1.36.0 vscode-xml|red|0.27.1 rust-analyzer|rus|0.3.2180 ruby-lsp|Sho|0.8.13 ayu-green|Sir|1.0.1 lua|sum|3.13.1 svelte-vscode|sve|109.2.3 even-better-toml|tam|0.19.2 ayu|tea|1.0.5 vscode-standard-ruby|tes|0.0.16 vscode-tinygo|tin|0.5.0 cmake|twx|0.0.17 intellicode-api-usage-examples|Vis|0.2.9 vscodeintellicode|Vis|1.3.2 vscode-gradle|vsc|3.16.4 vscode-java-debug|vsc|0.58.1 vscode-java-dependency|vsc|0.24.1 vscode-java-pack|vsc|0.29.0 vscode-java-test|vsc|0.43.0 vscode-maven|vsc|0.44.0 vscode-icons|vsc|12.9.0 volar|Vue|2.1.10 material-theme|zhu|3.17.6 linkerscript|Zix|1.0.4 (5 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805:30301674 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythonnoceb:30805159 asynctok:30898717 pythonmypyd1:30879173 2e7ec940:31000449 pythontbext0:30879054 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 945dj816:31013170 dvdeprecation:31068756 dwnewjupyter:31046869 newcmakeconfigv2:31071590 impr_priority:31102340 nativerepl1:31139838 pythonrstrctxt:31112756 cf971741:31144450 iacca1:31171482 notype1cf:31157160 5fd0e150:31155592 dwcopilot:31170013 j44ff735:31181874 ```
vs-code-engineering[bot] commented 6 hours 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.95.3. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

lukef commented 5 hours ago

I have tested on 1.95.3 and the issue remains.

alekcunn commented 3 hours ago

I'm curious how you are getting this to happen. I think a step by step video would help. I'm not a contributor only passing through.

You should know, it doesn't do that on windows. I wonder if its a bug in the linux build.

my build

Version: 1.95.3 (user setup) Commit: f1a4fb101478ce6ec82fe9627c43efbf9e98c813 Date: 2024-11-13T14:50:04.152Z Electron: 32.2.1 ElectronBuildId: 10427718 Chromium: 128.0.6613.186 Node.js: 20.18.0 V8: 12.8.374.38-electron.0 OS: Windows_NT x64 10.0.22631

alekcunn commented 3 hours ago

I am also curious what happens if you use something like .somethin>.othersomething>*2