microsoft / vscode

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

Misidentification of .html file extension as PHP file #144531

Closed kwakuduahc1 closed 2 years ago

kwakuduahc1 commented 2 years ago

Issue Type: Bug

This has happened a few times. Occassionaly, html files are identified as PHP files disabling the necessary extensions. I do not know exactly how to reproduce this error. I have to switch it to a different language, then to HTML as switching it straight too appears not to work.

Best regards.

VS Code version: Code 1.64.2 (f80445acd5a3dadef24aa209168452a3d97cc326, 2022-02-09T22:02:28.252Z) OS version: Windows_NT x64 10.0.19044 Restricted Mode: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz (4 x 2808)| |GPU Status|2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|15.86GB (5.49GB free)| |Process Argv|--crash-reporter-id 0b733ffd-db0b-4d5e-8f91-f54ef42e4bd5| |Screen Reader|no| |VM|0%|
Extensions (66) Extension|Author (truncated)|Version ---|---|--- better-comments|aar|2.1.0 android-dev-ext|ade|1.3.2 ng-template|Ang|13.2.4 angulardoc-vscode|Ang|6.1.3 vscode-database|baj|2.2.3 npm-intellisense|chr|1.4.1 vscode-eslint|dba|2.2.2 xml|Dot|2.5.1 gitlens|eam|12.0.1 vscode-npm-script|eg2|0.3.24 vscode-firefox-debug|fir|2.9.6 kotlin|fwc|0.2.23 remotehub|Git|0.24.0 gitkraken-authentication|git|1.0.3 vs-code-runner|Har|2.0.1 hclappscancodesweep|HCL|1.2.0 latex-workshop|Jam|8.23.0 azuredatastudio-select-top-n|jim|0.0.5 Angular2|joh|12.0.0 language-julia|jul|1.5.11 vscode-JS-CSS-HTML-formatter|lon|0.2.3 r|Mik|0.0.26 csharp|ms-|1.24.1 vscode-dotnet-runtime|ms-|1.5.0 vscode-edge-devtools|ms-|1.4.5 data-workspace-vscode|ms-|0.1.1 mssql|ms-|1.13.0 sql-database-projects-vscode|ms-|0.14.1 python|ms-|2022.2.1924087327 vscode-pylance|ms-|2022.3.0 jupyter|ms-|2022.1.1301854968 jupyter-keymap|ms-|1.0.0 jupyter-renderers|ms-|1.0.6 remote-containers|ms-|0.224.2 remote-ssh|ms-|0.76.1 remote-ssh-edit|ms-|0.76.1 remote-wsl|ms-|0.64.2 azure-account|ms-|0.10.0 cpptools|ms-|1.8.4 js-debug-nightly|ms-|2022.3.310 powershell|ms-|2021.12.0 vscode-typescript-tslint-plugin|ms-|1.3.3 vsliveshare|ms-|1.0.5418 cordova-tools|msj|2.4.1 sqltools|mtx|0.23.0 sqltools-driver-mssql|mtx|0.2.0 sqltools-driver-mysql|mtx|0.2.0 sqltools-driver-pg|mtx|0.2.0 sqltools-driver-sqlite|mtx|0.2.0 fix-json|oli|0.1.2 extra-sql-script-as|pac|0.3.0 material-product-icons|PKi|1.1.2 csharp2ts|raf|0.0.26 typescript-hero|rbb|3.0.0 java|red|1.4.0 vscode-commons|red|0.0.6 vscode-xml|red|0.19.1 bash-debug|rog|0.3.9 bootstrap4-vscode|the|6.1.0 xamarin-debug|vad|0.0.1 vscodeintellicode|Vis|1.2.17 vscode-java-debug|vsc|0.38.0 vscode-java-test|vsc|0.34.1 vscode-maven|vsc|0.35.1 txt-syntax|xsh|0.2.0 html-css-class-completion|Zig|1.20.0 (1 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383cf:30185419 vspor879:30202332 vspor708:30202333 vspor363:30204092 pythonvspyl392:30443607 pythontb:30283811 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscoreces:30445986 pythondataviewer:30285071 vscod805:30301674 pythonvspyt200:30340761 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 vsc1dst:30438360 pythonvs932:30410667 wslgetstartedc:30433508 vsclayoutctrc:30448490 vsrem710cf:30416617 dsvsc009:30440023 pythonvspyt640:30442238 vsbas813:30436447 vscscmwlcmc:30438804 vscgsvid2:30447481 helix:30440343 vscaat:30438848 ```
aeschli commented 2 years ago

This can come from an extension that reconfigures the .html file extension to a different language. You can use the Developper: Start Extension Bisect... to find out which one it is.

Or you have a association in the user or workspace settings.

I'm happy to repopen if you have reproducible steps and the issue is with VS Code or one of the built-in extensions.

kwakuduahc1 commented 2 years ago

Thanks