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 needed to dynamically define CSS variables based on the config, and I used string interpolation to construct an HTML fragment and insert it at svelte:head. While it works, it confuses the VS Code plugin. First, the branding variable is marked as unused, second there's no type information during interpolation. After some experiments, I found that <style> in the string is what triggering the issue.
Describe the bug
I needed to dynamically define CSS variables based on the config, and I used string interpolation to construct an HTML fragment and insert it at svelte:head. While it works, it confuses the VS Code plugin. First, the
branding
variable is marked as unused, second there's no type information during interpolation. After some experiments, I found that<style>
in the string is what triggering the issue.Reproduction
Expected behaviour
I was expecting that string interpolation works regardless the content of the string.
System Info
Which package is the issue about?
Svelte for VS Code extension
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered: