TheNouillet / symfony-vscode

Symfony extension for Visual Studio Code
MIT License
20 stars 22 forks source link

Go to Twig template #28

Open TheNouillet opened 5 years ago

TheNouillet commented 5 years ago

Goal : go from a configuration file or PHP file to a Twig template Note : parse ide-twig.json for custom template namespaces

ugniusramanauskas commented 1 year ago

I would be happy to implement this enhancement. Do you know where I could look for a good example on how this should be done?

RobinHoutevelts commented 6 months ago

parse ide-twig.json for custom template namespaces

...

Do you know where I could look for a good example

I believe https://github.com/Haehnchen/idea-php-symfony2-plugin/blob/ee4909e23d91f9d34b37ea17c5d9fdc3942343c8/src/main/java/fr/adrienbrault/idea/symfony2plugin/templating/path/JsonFileIndexTwigNamespaces.java might be a good start.

It parses the ide-twig.json and contains a test fixture.