zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
50.14k stars 3.08k forks source link

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

Open widersky opened 6 months ago

widersky commented 6 months ago

Check for existing issues

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

Moshyfawn commented 6 months ago

Related