microsoft / vscode

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

tag balancing problem in php #218073

Open kingma-sbw opened 1 week ago

kingma-sbw commented 1 week ago

Type: Bug

Sometime adding a closing html tag changes the opening <?php tag. I've attempted to create the smallest case the reproduces this error but it seems to be dependend on timing as well as amount of code. See the video. Sometimes the <?php tag is extended with the complete tagname (<tr?php), sometimes only the first couple off characters.

VS Code version: Code 1.90.2 (5437499feb04f7a586f677b155b039bc2b3669eb, 2024-06-18T22:34:26.404Z) OS version: Windows_NT x64 10.0.19045 Modes:

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz (8 x 2803)| |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.63GB (1.81GB free)| |Process Argv|--crash-reporter-id 4ab09701-eff2-481c-96ef-1c6ea9847d0d| |Screen Reader|no| |VM|0%|
Extensions (72) Extension|Author (truncated)|Version ---|---|--- vscode-css-formatter|aes|1.0.2 tsl-problem-matcher|amo|0.6.2 vscode-color|ans|0.4.5 find-and-transform|Art|5.2.3 color-info|bie|0.7.2 phpunit-test-workbench|chi|0.7.4 jsdoc-generator|cry|2.1.0 vscode-markdownlint|Dav|0.55.0 vscode-eslint|dba|3.0.10 vscode-quick-select|dba|0.2.9 composer-php-vscode|DEV|1.48.15672 intelli-php-vscode|DEV|0.12.15062 phptools-vscode|DEV|1.48.15635 profiler-php-vscode|DEV|1.48.15672 githistory|don|0.6.20 xml|Dot|2.5.1 git-watch-vscode-rename|eri|1.1.0 prettier-vscode|esb|10.4.0 vscode-firefox-debug|fir|2.9.10 workspace-formatter|fra|1.1.0 vuetify-snippets|Gai|0.1.2 classroom|git|0.0.4 codespaces|Git|1.16.23 remotehub|Git|0.62.0 vscode-pull-request-github|Git|0.91.2024062004 composer|ika|0.8.0 vscode-vibrancy-continued|ill|1.1.35 prettier-sql-vscode|inf|1.6.0 vscode-edit-csv|jan|0.9.1 vscode-sql-formatter|lea|2.1.6 expand-region|let|0.1.4 regionfolder|map|1.0.22 rainbow-csv|mec|3.12.0 git-graph|mhu|1.30.0 code-beautifier|mic|2.3.3 gitignore|mic|1.0.1 language-gettext|mro|0.5.0 vscode-docker|ms-|1.29.1 csdevkit|ms-|1.7.27 csharp|ms-|2.34.12 vscode-dotnet-runtime|ms-|2.0.6 vscode-edge-devtools|ms-|2.1.5 remote-containers|ms-|0.369.0 remote-wsl|ms-|0.88.2 azure-repos|ms-|0.38.0 powershell|ms-|2024.2.2 remote-repositories|ms-|0.40.0 vsliveshare|ms-|1.0.5932 sqltools|mtx|0.28.3 sqltools-driver-mysql|mtx|0.6.3 php-docblocker|nei|2.7.0 vetur|oct|0.37.3 vscode-css-peek|pra|4.4.1 vscode-yaml|red|1.15.0 phpdoc-comment-vscode-plugin|rex|1.3.0 format-html-in-php|rif|1.7.0 LiveServer|rit|5.7.9 phpdoc-generator|ron|1.1.1 vue-vscode-snippets|sdr|3.1.1 vuetify-gotodocs|Sil|1.0.0 svg-preview|Sim|2.8.3 sass-indented|syl|1.8.29 pdf|tom|1.2.2 highlight-matching-tag|vin|0.11.0 volar|Vue|2.0.22 vuetify-vscode|vue|0.2.0 region-highlighter|Wie|1.0.1 wordpress-toolbox|wor|1.3.15 vue|Wsc|1.0.26 php-debug|xde|1.34.0 php-snippets-for-vscode|Yis|1.1.1 markdown-all-in-one|yzh|3.6.2
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805:30301674 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 vscaac:30438847 c4g48928:30535728 azure-dev_surveyone:30548225 2i9eh265:30646982 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonnoceb:30805159 asynctok:30898717 pythonregdiag2:30936856 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 jchc7451:31067544 chatpanelt:31048053 dsvsc021:30996838 g316j359:31013175 pythoncenvpt:31062603 a69g1124:31058053 dvdeprecation:31068756 dwnewjupyter:31046869 legacy_priority:31082724 ```
kingma-sbw commented 1 week ago

tag balancing gone wrong

roblourens commented 4 days ago

Looks like you have a lot of extensions installed, can you check whether one of them is responsible and is incorrectly trying to balance html tags? You can start vscode with --disable-extensions or run the command "Start Extension Bisect" to try to figure out which one it is