Doing a rename without an actual name change (e.g. because you changed your mind or accidentally started to rename the wrong file) just deletes everything in the file.
This applies to both the Svelte 4 and 5 preview REPL.
Reproduction
Add a component
Add some content to the file
Click the file name to start rename
Click away to end rename without changing anything
Describe the bug
Doing a rename without an actual name change (e.g. because you changed your mind or accidentally started to rename the wrong file) just deletes everything in the file.
This applies to both the Svelte 4 and 5 preview REPL.
Reproduction
Logs
No response
System Info
Severity
annoyance