๐ Source editor disappears when deleting all text
austincondiff opened this issue ยท 8 comments
austincondiff commented
Description
Deleting all text from the source editor results in the source editor being replaced by a QuickLook view.
To Reproduce
- Open a project
- Open a file in the project
- Delete all of the text in the file
- Notice the source editor is replaced by a big file icon (QuickLook view)
Expected Behavior
The source editor should remain in place.
Screenshots
Screen.Recording.2024-05-17.at.2.59.54.PM.mov
Related issues
austincondiff commented
plbstl commented
I see. I'm taking a look at it now
thecoolwinter commented
Whoops, didn't see @plbstl was taking a look. I've got a PR open for this now it was a very small fix.
plbstl commented
Oh okay. I'll also test it out
plbstl commented
I found some issues with #1723.
Doesn't work for:
- files without file extensions
- files with only file extensions
Also, it opens some binaries as text files.
pr-1723.mov
FastestMolasses commented
Good catch, does this PR replace the other one entirely?
plbstl commented
Yes it does. They are both minor changes.