pebble-intellij icon indicating copy to clipboard operation
pebble-intellij copied to clipboard

extend/include autocomplete ignores template directories

Open Martmists-GH opened this issue 1 year ago • 2 comments

When typing {% extends "..." %} or {% include "..." %}, it only autocompletes files relative to the current files, rather than autocompleting them relative to directories marked as "Template Folder" in IntelliJ:

image

Martmists-GH avatar Sep 14 '22 12:09 Martmists-GH

I don't see any "Template Folder" option in https://www.jetbrains.com/help/idea/content-roots.html, are you talking about something else?

Anyway, the difficulty is that you could theoretically set any folder as a template folder when building a PebbleLoader. And on the other hand, marking a directory as a "template folder" is not enough for PebbleLoader to use it :/

bjansen avatar Oct 02 '22 16:10 bjansen

After doing a bit of research, it seems the Python plugin may be providing this.

While I'm aware the PebbleLoader is unaware of project settings, having the autocomplete be aware of project settings (even if it's a different content root than the one provided by the python plugin) would be a great QoL feature to have.

Martmists-GH avatar Oct 02 '22 17:10 Martmists-GH