When loading the files from a saved REPL renaming a file broke the REPL because selecting a new tab was storing the state from App.svelte for the newly selected file in the EDITOR_STATE_MAP. Given that the state includes the document itself after renaming the file the editor restored the state with the wrong doc.
When loading the files from a saved REPL renaming a file broke the REPL because selecting a new tab was storing the state from App.svelte for the newly selected file in the EDITOR_STATE_MAP. Given that the state includes the document itself after renaming the file the editor restored the state with the wrong doc.
See this REPL as an example, trying to rename ItemTypeOne substitute the content of ItemTypeOne.svelte with the one from App.svelte https://svelte.dev/repl/d9d167fa8ded478ba4dea62257d75a10?version=3.8.0