sveltejs / sites

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

Double clicking a filename other than `App.svelte` then clicking the editing area erases all the component #523

Open inspiredlabs opened 11 months ago

inspiredlabs commented 11 months ago

Steps to reproduce:

import BarryScott from './BarryScott.svelte';
</script>

<BarryScott >
    Bang! And, your component is gone.
</BarryScott>

This is especially annoying when starting a new component as it's handy to double-click the filename and copy it's contents to be reused in the import statement: import Paste from './Paste.svelte'.

Other than that, top-notch first impression. 💯