-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTML comment is duplicated when using Format on Save #205
Comments
Can you post a minimum reproducible and copy-pasteable code snippet? |
If you save the following as a .svelte file and try to save it with "Format on Save" the same behavior as above should happen with the "Full image viewer" html comment. It will be duplicated on save.
|
Search of comment belonging to those blocks was wrong Fixes sveltejs#205
Search of comment belonging to those blocks was wrong Fixes #205
This was released in the VS Code extension version 104.4.2 |
prettier.mp4 |
I'm experiencing the exact same thing |
When enabling "Format on Save" in VS Code settings, recently I've noticed that some comments are being duplicated on save. Here are two images:
Before:
After:
I didn't have this issue before and I can only prevent it by disabling "Format on Save" or unchecking "Format: Enable" in Settings under Extensions > Svelte.
The text was updated successfully, but these errors were encountered: