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
If you have a sort order defined (or at least with the default one), it doesn't allow for HTML comments after the script tags, which is conflicting with my use of VS Code's #region-#endregion tags.
In long components, I wanted to wrap my logic, markup, and style in those region-tags, so I can fold them away. But the very last #endregion tag (which has to be inside of a comment) would always be moved before the style-tags by svelte-prettier.
Probably because it thinks that the comment is part of the markup, which is supposed to go before the style-tags. Maybe you can change that behaviour by making it ignore comments in the sort-order?
The text was updated successfully, but these errors were encountered:
If you have a sort order defined (or at least with the default one), it doesn't allow for HTML comments after the script tags, which is conflicting with my use of VS Code's #region-#endregion tags.
In long components, I wanted to wrap my logic, markup, and style in those region-tags, so I can fold them away. But the very last #endregion tag (which has to be inside of a comment) would always be moved before the style-tags by svelte-prettier.
This:
Will be reformatted to this:
Probably because it thinks that the comment is part of the markup, which is supposed to go before the style-tags. Maybe you can change that behaviour by making it ignore comments in the sort-order?
The text was updated successfully, but these errors were encountered: