-
Notifications
You must be signed in to change notification settings - Fork 95
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:
![Screen Shot 2021-02-14 at 9 42 46 AM](https://user-images.githubusercontent.com/51680874/107887318-5cc6e880-6ea9-11eb-8318-4d40408bc00a.png)
After:
![Screen Shot 2021-02-14 at 9 43 00 AM](https://user-images.githubusercontent.com/51680874/107887320-618b9c80-6ea9-11eb-83c5-f198c221c051.png)
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: