With the vscode extension Better Jinja the jinja-html language highlights jinja html templates, however some more advanced features available with the html langauge are not working with jinja-html:
- highlighting the opening tag when the cursor is in the closing tag (and visa versa)
In the second case with jinja-html as the language all divs are highlighted, not just the sibling of the tag under the cursor
- auto creating the closing tag once the opening tag is created.
And probably more, but these are the two which would be most useful.
How do I get these advanced features working in my child language definition?
I've tried copying most of the config from extensions/html/package.json and extensions/html/language-configuration.json into my extension but to no avail. I also tried looking through extensions/html-language-features but there's nothing obvious there to include.
This isn't as simple as adding more file extensions somewhere, even in a .html file if the language is changed to jinja-html the features above disappear.
- VSCode Version:
1.22.2 3aeede733d9a3098f7b4bdc1f66b63b0f48c1ef9 x64
- OS Version: ubuntu 18.04
Steps to Reproduce:
- install "Better Jinja"
- open or create a file with some html in
- change the language to
jinja-html
- try using advanced html features as described above
Does this issue occur when all extensions are disabled?: Yes (the advanced features work with the html language without extensions, obviously the error can only be shown with the extension installed)
With the vscode extension Better Jinja the
jinja-htmllanguage highlights jinja html templates, however some more advanced features available with thehtmllangauge are not working withjinja-html:jinja-htmlas the language alldivs are highlighted, not just the sibling of the tag under the cursorAnd probably more, but these are the two which would be most useful.
How do I get these advanced features working in my child language definition?
I've tried copying most of the config from
extensions/html/package.jsonandextensions/html/language-configuration.jsoninto my extension but to no avail. I also tried looking throughextensions/html-language-featuresbut there's nothing obvious there to include.This isn't as simple as adding more file extensions somewhere, even in a
.htmlfile if the language is changed tojinja-htmlthe features above disappear.1.22.2 3aeede733d9a3098f7b4bdc1f66b63b0f48c1ef9 x64Steps to Reproduce:
jinja-htmlDoes this issue occur when all extensions are disabled?: Yes (the advanced features work with the
htmllanguage without extensions, obviously the error can only be shown with the extension installed)