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
39.65k stars 2.07k forks source link

Emmet HTML Boilerplate "!" Abbreviation Not Working #12791

Open FrankDraws opened 1 month ago

FrankDraws commented 1 month ago

Check for existing issues

Describe the bug / provide steps to reproduce it

I create an HTML file by right clicking into the Project Panel. Then, when I type "!" to create the HTML 5 boilerplate, nothing comes up. It seems to take a long while for it to recognize the page is HTML 5. I also noticed that if I put in the page structure in a different way, it seems to then recognize the page as HTML after a while; at which point typing "!" to insert the boilerplate works (after the fact).

Environment

Zed: v0.138.6 (Zed) OS: macOS 14.5.0 Memory: 16 GiB Architecture: aarch64

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

Screenshot_Zed_doctypeAbbreviation Screenshot_Zed_exclamationAbbreviation

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

Attached is a text file of the zed.log. FrankDraws_zed_log.txt

bajrangCoder commented 1 month ago

Use emmet extension

Moshyfawn commented 1 month ago

Use emmet extension

This behaviour is present with the Emmet extension installed.

bajrangCoder commented 4 weeks ago

Use emmet extension

This behaviour is present with the Emmet extension installed.

Really? Maybe the Emmet LSP wasn't started.(According to your zed logs , it fails to start the LSP server check the last line) It's working fine for me 👇

https://github.com/zed-industries/zed/assets/71929976/fdbdc8c0-b55a-46d6-a774-6fc6ccf43d51

mikamero commented 1 week ago

how do you fix it? same issue here with emmet extension installed, the snippet (!, html, body, basically all of them) is not showing anything nor respond by pressing tab. xx

SavinDevelop commented 5 days ago

The ! tab doesn't work for me either. But the extensions are installed

mikajed commented 1 day ago

Got the same problem, have to restart Zed to get it working.