microsoft / vscode

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

Random colors of syntax highlight on reformatting #204456

Closed KonradDRAST closed 7 months ago

KonradDRAST commented 7 months ago

Type: Bug

After reformating through prettier on save, syntax sometimes gets random colors rather than correctly highlighting whole words.

image

image

That was .vue files in both cases.

VS Code version: Code 1.86.0 (05047486b6df5eb8d44b2ecd70ea3bdf775fd937, 2024-01-31T10:28:19.990Z) OS version: Windows_NT x64 10.0.22631 Modes:

System Info |Item|Value| |---|---| |CPUs|12th Gen Intel(R) Core(TM) i5-12400F (12 x 2496)| |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)|31.82GB (4.99GB free)| |Process Argv|--crash-reporter-id 34ad5e80-d7e3-4ad2-b480-338f989ad190| |Screen Reader|no| |VM|0%|
Extensions (29) Extension|Author (truncated)|Version ---|---|--- vscode-sql-formatter|adp|1.4.4 unique-lines|bib|1.0.0 vscode-tailwindcss|bra|0.10.5 npm-intellisense|chr|1.4.5 path-intellisense|chr|2.8.5 vscode-sql-beautify|cla|0.3.23 codeium|Cod|1.6.29 language-postcss|cpy|1.1.0 dart-code|Dar|3.82.0 vscode-eslint|dba|2.4.4 xml|Dot|2.5.1 prettier-vscode|esb|10.1.0 auto-close-tag|for|0.5.15 auto-rename-tag|for|0.1.10 dotenv|mik|1.0.1 vue-volar-extention-pack|Mis|1.1.8 vscode-language-pack-pl|MS-|1.85.2024013109 material-icon-theme|PKi|4.33.0 LiveServer|rit|5.7.9 code-spell-checker|str|3.0.1 code-spell-checker-polish|str|2.1.2 vscode-stylelint|sty|1.3.0 vscode-icons|vsc|12.7.0 volar|Vue|1.8.27 vscode-typescript-vue-plugin|Vue|1.8.27 vscode-wakatime|Wak|24.4.0 vscode-import-cost|wix|3.3.0 change-case|wma|1.0.0 material-theme|zhu|3.16.2
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492:30256859 vscorecescf:30445987 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:30899288 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30951796 pythongtdpath:30769146 welcomedialog:30910333 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 pythontbext0:30879054 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 dsvsc019b:30953937 3ef8e399:30949928 ```
mjbvz commented 7 months ago

Please start by filing this issue against your Vue extension