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
dummdidumm
changed the title
The |important modifier on style directives gets removed when using Svelte for VS Code
Support modifiers on style directives
Dec 9, 2022
dummdidumm
added a commit
to dummdidumm/prettier-plugin-svelte
that referenced
this issue
Dec 9, 2022
Describe the bug
Hey there,
I'm using Svelte for VS Code to format files on save.
When adding an
|important
modifier to a style directive in a.svelte
file, the modifier gets removed when the file is formatted.I tried disabling formatting by adding
*.svelte
to my Prettier ignore file, and the modifier was preserved as expected.Reproduction
Add a style directive with
|important
and save the file. Watch it disappear...spooky...Expected behaviour
Modifier to persist after formatting.
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: