You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to disable the extension for shell scripts which are actually jinja2 templates. That is because shellcheck does not parse them properly and reports many errors.
So I did this in my .vscode/settings.json:
"files.associations": {//"*.sh.j2": "shellscript", // I'm not using the default association"*.sh.j2": "jinja-shell",// associated with "Better Jinja" extension},"shellcheck.ignorePatterns": {"**/*.sh.j2": true,},
But when I open a foo.sh.j2 file, shellcheck is still activated.
The text was updated successfully, but these errors were encountered:
In fact, what is happening here is that the extension only triggers itself based on your configuration: onType or onSave. If you had typed something in the Jinja2 file, it would probably recalculate and stop.
We can probably improve this though, so I'm changing the issue title to reflect what we can do.
I want to disable the extension for shell scripts which are actually jinja2 templates. That is because shellcheck does not parse them properly and reports many errors.
So I did this in my
.vscode/settings.json
:But when I open a
foo.sh.j2
file, shellcheck is still activated.The text was updated successfully, but these errors were encountered: