-
-
Notifications
You must be signed in to change notification settings - Fork 202
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
Deleting or pasting code sometimes causes messed-up highlighting and broken rename until reloading window #2534
Comments
We'll need an actual reproduction to investigate. So please at least try to narrow down what the issue might be. Does this happen in a specific file? If so, does copying this file to any empty svelteKit project reproduce the problem? Is there a file in the directory with a similar name? Or maybe there is anything you did before you pasted any code? Like renaming the file? |
I realized it actually happens more frequently when deleting code rather than pasting. It's very hard for me to reproduce reliably. It happens randomly on various files and various different areas of code, in different projects, approximately 1-2 times per hour. I was not renaming or creating or deleting files, just working on existing files. I looked into the output pane a bit and I found two things that seemed relevant: 1: Under Svelte, there was this error:
2: Under Window, there was this warning:
Is there a way I could get more debug output for you to review? |
The error sounds like you added |
I can reproduce the out-of-sync now with the reproduction of #2538, so I'm closing in favour of it. |
Thank you - I was not able to create a reproduction without keeping significant parts of the projects intact that I couldn't share. It did happen on several projects but they were all larger customer projects. (I certainly did not use |
Describe the bug
Sometimes when deleting or pasting code, all the syntax highlighting gets messed up (things get highlighted with different colors in the middle of a word, etc.), the "rename" operation doesn't work correctly anymore and overwrites random other things in the file with the new name instead of changing the places where the original name was used. This state gets fixed only by reloading the window.
It started only recently, maybe a week or so ago.
Reproduction
Don't know - it randomly happens when pasting code.
Expected behaviour
Normal syntax highlighting, normal "rename" behavior
System Info
Which package is the issue about?
Svelte for VS Code extension
Additional Information, eg. Screenshots
The text was updated successfully, but these errors were encountered: