-
Notifications
You must be signed in to change notification settings - Fork 31
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
Disable arbitrary tag names #55
Comments
Did you find a way to disable it? I'm reading the docs to try to figure it out, if you haven't I'll type my solution here |
No, I have not. |
Hey! I'll see what I can do this weekend. |
Yes, please. This things is kinda anoying. Btw thx for the contribution @olrtg |
I just started using Emmet and am running into this as well. I understand it's normal behavior, but some find having a single completion snippet for anything you type is noisy. VS Code only does this for anything that starts with a capital letter, assuming it's a component name. For reference, here is a function they made to stop potentially noisy behavior: |
I've tried to fix this but it was a lot more complicated than I thought but ended up building https://github.com/olrtg/emmet-ls which fixes this problem and for sure improves other things since it reuses vscode's integration with emmet. |
Note: There are two language servers available for emmet: We used to use: https://github.com/aca/emmet-ls but this makes suggestions for arbitrary words ("asdf" --> <asdf></asdf>) which is annoying. This is not the case with: https://github.com/olrtg/emmet-language-server See this thread for more info: aca/emmet-ls#55
Note: There are two language servers available for emmet: We used to use: https://github.com/aca/emmet-ls but this makes suggestions for arbitrary words ("asdf" --> <asdf></asdf>) which is annoying. This is not the case with: https://github.com/olrtg/emmet-language-server See this thread for more info: aca/emmet-ls#55
Hi @olrtg, i'm stucked with the same error, can i ask you how did you build https://github.com/olrtg/emmet-lsin order to fix the error? |
@sebalfaro that's a whole separate project, another language server. Go to the docs to see how you can use it! |
Note: There are two language servers available for emmet: We used to use: https://github.com/aca/emmet-ls but this makes suggestions for arbitrary words ("asdf" --> <asdf></asdf>) which is annoying. This is not the case with: https://github.com/olrtg/emmet-language-server See this thread for more info: aca/emmet-ls#55
Right now
asdf
expands into<asdf></asdf>
.Is there a way to disable that and only expand valid HTML tags?
The text was updated successfully, but these errors were encountered: