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
Using handlebars in style attribute causes VS Code to report an error.
Steps to Reproduce:
Create a new HTML file
Paste the following snippet: <input type="text" name="user_name" placeholder="Enter user name" class="textbox_with_icon" style="background-image: url({{ url_for('static', filename='images/icon_user_gray.svg') }});">
VS Code now shows an error
Does this issue occur when all extensions are disabled?: Yes
I believe it is the same issue as #53314 , however that issue has been closed due to apparent lack of reproducibility (however the original snippet does too throw an error on my setup).
The text was updated successfully, but these errors were encountered:
octref
added
css-less-scss
Issues and items concerning CSS,Less,SCSS styling
html
HTML support issues
bug
Issue identified by VS Code Team member as probable bug
labels
Feb 4, 2019
I would propose that some sort of setting be added to the language server that allows identifying template characters. For example, if we could specify template characters similar to how we specify folding characters in a custom language - although in this case its not applying to a custom language, but rather to a set of HTML files - we could simply tell the HTML language server (and sub-languages for JS and CSS) to not validate those strings.
This is a simplification but if we could provide something like this to tell the language server which files this applies to and what the templating patterns are, this would allow eliminating these errors.
There is certainly more we could do in terms of extending the HTML language server to provide code completion and validation for these types of templates, but I think this is a good-enough solution to start.
#49210 is the issue to make the HTML support either configurable to it knows about template languages, or make it easy to create a template language server by parameterizing the HTML language support.
Using handlebars in style attribute causes VS Code to report an error.
Steps to Reproduce:
<input type="text" name="user_name" placeholder="Enter user name" class="textbox_with_icon" style="background-image: url({{ url_for('static', filename='images/icon_user_gray.svg') }});">
Does this issue occur when all extensions are disabled?: Yes
I believe it is the same issue as #53314 , however that issue has been closed due to apparent lack of reproducibility (however the original snippet does too throw an error on my setup).
The text was updated successfully, but these errors were encountered: