sveltejs / sites

Monorepo for the sites in the Svelte ecosystem
https://svelte.dev
MIT License
286 stars 123 forks source link

REPL: Rename of file without changing name clears the file contents #552

Open brunnerh opened 5 months ago

brunnerh commented 5 months ago

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

Tested in Chrome and FF.

Severity

annoyance