-
Notifications
You must be signed in to change notification settings - Fork 407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Causes PHP Syntax Highlighting Issue #1988
Comments
Thanks for reporting this @westc , we've made changes in release |
Looks like this is related to html language contribution. While "Aura Components" extension is enabled (even if not activated) this issue would present. @mysticflute @nrkruk could we continue conversation here WRT modification for aura support? |
@lcampos Is it even possible to disable the |
I'm still able to reproduce this. |
This issue has been linked to a new work item: W-10934996 |
This is still happening. Messing up HTML color syntax in PHP files. I'm using VSCode 1.72 + SF Extension Pack v v55.8.0. |
Hi @michaelsoriano just to check for your case as well - is this happening in unsaved php files, or files that are saved with the .php extension? |
Hi @randi274 - its both. For saved .php files and new files (no extension). Here's a screenshot of both side by side: |
@michaelsoriano we actually do have a setting for this! It's possible it's not being respected now, but we would recommend using "Autodetect" in your case, or using "off" definitively should stop the LWC and Aura Language Servers from activating. |
@randi274 thank you. I checked the settings and "autodetect" is already on. I've learned to just manually "disable" the entire extension pack in PHP projects. |
PR merged. Will be included with next release #5159 |
Summary
When this extension is enabled in Visual Studio Code the native syntax highlighting for PHP doesn't highlight other embedded languages (HTML, CSS and JavaScript) as expected.
Steps To Reproduce:
Expected result
All of the code will be syntax highlighted depending on the language:
Actual result
The PHP code will be highlighted as PHP but the inline HTML, CSS and JS will not be highlighted:
Additional information
VS Code Version: 1.42.1
SFDX CLI Version: sfdx-cli/7.36.0-b1c4e9c7c8 darwin-x64 node-v10.15.3
OS and version: macOS Mojave 10.14.6
OS According to VS Code: Darwin x64 18.7.0
The text was updated successfully, but these errors were encountered: