Closed mike-moreau closed 1 year ago
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.
|important
.svelte
I tried disabling formatting by adding *.svelte to my Prettier ignore file, and the modifier was preserved as expected.
*.svelte
Add a style directive with |important and save the file. Watch it disappear...spooky...
Modifier to persist after formatting.
Svelte for VS Code extension
No response
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