language-tools
language-tools copied to clipboard
use file/folder list from the configured static folder in autocompletions for url helpers in <style> section
[Question] I was wondering if the displayed list can be configured to list the files/folder in the configured "static" folder for the project?
e.g.
This ends up inserting "/static/images/bg.svg", it should be "/images/bg.svg".
It annoying having to always edit the resulting string and removing "/static".
I don't understand the question. If you go '/static/
is should show these AFAIK
it ends up inserting "/static/images/bg.svg", what it should be inserting is "/images/bg.svg"
ill edit the original question.
Ok so you want the completion suggests to be relative to your static folder. Honestly not sure if this is possible, since this relies on the VS Code HTML Language Service. At the very least it would need some kind of config option to tell where to start from.
Isn't that possible, in advance, to determine from where the user required to see autocompletions?
Thus we could:
- Use normal paths for
<script>
cases. - Use paths relative to
static
folder for paths inside<script>
tag, or inside style files (css, scss).
That would make the most sense, because that's basically how Svelte works.
Isn't that possible to determine this, from within extension?