-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Overriding html-language-features in extension #55088
Comments
Please have a look at #47288.
|
We also have #49210, which aimes for a simpler, ideally configuration based approach. |
Thanks @aeschli for the pointers, I totally missed those. I’ll have a close look. |
Either way, that’s a bit overwhelming for me yet. |
I’m writing an extension that support the Django template language. The id of the language is
django-html
and when it’s set this way, I’m losing the nice features given by HTML Language Features bundled extension.On the other hand, if I set the language id as
html
, I’ve got my syntax, the auto-indentation and others, but I (and users) are losing the ability to switch to plain html.This issue seems similar to #28145 but it’s not about embedding HTML here, nor injecting, as far as I understood.
I see that in html-language-features/client/src/htmlMain.ts the auto-indent is loaded based on hardcoded language id
html
.What would it be the best way to use these features in a different language id?
And what if I want to add more indentation rules?
I opened a question on Stack Overflow as well.
The text was updated successfully, but these errors were encountered: