Open marcoroth opened 7 months ago
Has this been implemented? I am not getting autocomplete in my twig templates (symfony project)
Hey @jcsmithf22, sadly not quite yet, the current implementation only works on actual HTML tags.
So if you have regular HTML in Twig files it should work, but it doesn't work for Twig-specific syntax that might emit HTML.
This is similar for any other templating language. For ERB files in Rails projects it works for this for example:
<div data-controller="|">
But it doesn't work for something like:
<div>
<%= tag.div(data: { controller: "|" }) %>
</div>
That's interesting, I am not having any autocomplete in twig. Here are a couple screenshots. I think it may not be finding the automatically registered controllers in Symfony either.
This is in twig:
This is in html:
This is in the controller:
https://twig.symfony.com