Describe the bug
If an editor has a selection and you close that particular editor tab, the whole app crashes
To Reproduce
Steps to reproduce the behavior:
- Go to any project
- Open one of your files
- Select something
- close the active editor tab(of the file you just opened)
- The whole app crashes.
Expected behavior
The tab should close but the app shouldn't crash.
Screenshots or Loom recording
https://cap.so/s/gvkcrjpxb2zpfzv
Browser (please complete the following information):
- OS: MacOS
- Browser: Chrome