microsoft / vscode

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

Broken bracket pair colorization in Vue SFC #157241

Closed chornonoh-vova closed 2 years ago

chornonoh-vova commented 2 years ago

Type: Bug

  1. Open file with .vue extension
  2. Navigate to <script lang="ts">...</script> section
  3. Arrow function in template incorrectly highlighted image

VS Code version: Code 1.70.0 (da76f93349a72022ca4670c1b84860304616aaa2, 2022-08-04T04:38:48.541Z) OS version: Linux x64 5.15.0-41-generic Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz (4 x 3469)| |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_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|1, 2, 3| |Memory (System)|15.31GB (3.11GB free)| |Process Argv|--unity-launch --crash-reporter-id 15b78150-95ad-4717-818c-50f4e9be65b4| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|ubuntu| |XDG_CURRENT_DESKTOP|Unity| |XDG_SESSION_DESKTOP|ubuntu| |XDG_SESSION_TYPE|x11|
Extensions (15) Extension|Author (truncated)|Version ---|---|--- vscode-eslint|dba|2.2.6 gitlens|eam|12.1.2 prettier-vscode|esb|9.5.0 vscode-graphql|Gra|0.7.1 vscode-graphql-syntax|Gra|1.0.4 i18n-ally|lok|2.8.1 remote-ssh|ms-|0.84.0 remote-ssh-edit|ms-|0.80.0 mdx|sil|0.1.0 code-spell-checker|str|2.3.4 vscode-stylelint|sty|1.2.2 sass-indented|syl|1.8.22 vscodeintellicode|Vis|1.2.22 volar|Vue|0.39.4 vscode-typescript-vue-plugin|Vue|0.39.4 (1 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492:30256859 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263cf:30335440 vscoreces:30445986 pythondataviewer:30285071 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593cf:30376535 vsc1dst:30438360 pythonvs932:30410667 wslgetstarted:30449410 vscscmwlcmt:30465135 cppdebug:30492333 pylanb8912cf:30529770 vsclangdf:30486550 c4g48928:30535728 hb751961:30541207 dsvsc012:30540252 ```
IllusionMH commented 2 years ago

Looks like https://github.com/johnsoncodehk/volar/issues/1675

James-Laidlaw commented 2 years ago

Looks like johnsoncodehk/volar#1675

See also #156168 and johnsoncodehk/volar#1566

SCG82 commented 2 years ago

May be related: https://github.com/microsoft/vscode/issues/157322

hediet commented 2 years ago

/duplicate #157322

vscodenpa commented 2 years ago

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.

Happy Coding!