Emmet is not working as expected
See original GitHub issueCan this be because of this plugin? I’m using Goland.
I haven’t found out when exaclty it doesn’t work. It never works inside another tag. Sometimes it doesn’t even work on the root level.
Changing the File type of .svelte
files back to HTML makes everything work as expected again.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:14 (14 by maintainers)
Top Results From Across the Web
Visual Studio Code Emmet not working - Stack Overflow
With newer versions of VSCode, you can open up settings by selecting Code > Preferences > Settings and then search for "Emmet: Include...
Read more >Emmet not working in VS Code ?— Here's how you can fix this ...
Step 3: Click on the “Edit in settings:json” hyperlink to edit the settings in JSON format. Step 5: Save the file. Now if...
Read more >Emmet not working · Issue #958 · microsoft/vscode - GitHub
I just updated visual studio code and as a result I see that emmet is not working now. in previous releases, emmet did...
Read more >Emmet - Package Control
If you're unable to find Emmet package on last step or installed package doesn't work as expected, restart Sublime Text and try again...
Read more >Emmet Not Working in Visual Studio Code - YouTube
Emmet Not Working in Visual Studio Code | Emmet Solution | How to fix Emmet Not Working | Hindi | HiI Am Mridul....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I was able to reproduce, It’s not a big deal really but I will try to debug it sometime nonetheless
In #40 I’ve changed how whitespace is parsed.
Now it’s delegated to HTML side with notable exception of continuous whitespace between Svelte mustaches and first non-whitespace HTML character, it’s required for current (bad) implementation of formatter to work.
Anyway that fixed Emmet partially.
Preview still does not work with the last character in a file. Add one space after Emmet shorthand and everything starts to work. Anyway you can expand shorthand and it works in both cases.
Remaining unsolved issue is shorthand directly after Svelte mustache. I suspect this is connected to mentioned whitespace handling and by extension formatter. Edit. No it doesn’t. Mustaches live in different PSI, that must be an issue.