Skip to content
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

Emmet in PHP is activated only when I use it in an HTML file first #11566

Open
1 task done
widersky opened this issue May 8, 2024 · 1 comment
Open
1 task done

Emmet in PHP is activated only when I use it in an HTML file first #11566

widersky opened this issue May 8, 2024 · 1 comment
Labels
defect [core label] emmet Emmet tooling support language server An umbrella label for all language servers language An umbrella label for all programming languages syntax behaviors php PHP programming language support tooling An umbrella label for language tools, linters, formatters, etc

Comments

@widersky
Copy link

widersky commented May 8, 2024

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

When I try to use Emmet in a PHP file, I can't do it unless I open any HTML file first.

Steps to reproduce:

  1. Open any PHP project without the HTML file open on any tab
  2. Try to use Emmet in PHP file (in my case it was empty PHP file - I tried to use just plain HTML syntax inside PHP file)
  3. Open any HTML file - might be just for preview
  4. Now Emmet is working in PHP file too

It looks like PHP files are not triggering Emmet Language Server to download.

It also happened to me once that after completing the above steps, the CMD + / shortcut started inserting an incorrect comment in the HTML syntax ( // instead of <!—- -—> ). Unfortunately, I was unable to trigger this behavior a second time.

image

Environment

Zed: v0.134.1 (Zed Preview)
OS: macOS 14.4.1
Memory: 16 GiB
Architecture: aarch64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

No response

@widersky widersky added admin read Pending admin review defect [core label] triage Maintainer needs to classify the issue labels May 8, 2024
@Moshyfawn
Copy link
Contributor

Moshyfawn commented May 8, 2024

Related

@Moshyfawn Moshyfawn added language An umbrella label for all programming languages syntax behaviors language server An umbrella label for all language servers php PHP programming language support tooling An umbrella label for language tools, linters, formatters, etc emmet Emmet tooling support and removed triage Maintainer needs to classify the issue labels May 8, 2024
@JosephTLyons JosephTLyons removed the admin read Pending admin review label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect [core label] emmet Emmet tooling support language server An umbrella label for all language servers language An umbrella label for all programming languages syntax behaviors php PHP programming language support tooling An umbrella label for language tools, linters, formatters, etc
Projects
None yet
Development

No branches or pull requests

3 participants