Skip to content
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

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

Open
brunnerh opened this issue Jan 21, 2024 · 0 comments
Open

Comments

@brunnerh
Copy link
Member

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

  • Add a component
  • Add some content to the file
  • Click the file name to start rename
  • Click away to end rename without changing anything
  • Observe file contents

Logs

No response

System Info

Tested in Chrome and FF.

Severity

annoyance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant