Skip to content

🐞 Source editor disappears when deleting all text #1722

Closed

Description

@austincondiff

Description

Deleting all text from the source editor results in the source editor being replaced by a QuickLook view.

To Reproduce

  1. Open a project
  2. Open a file in the project
  3. Delete all of the text in the file
  4. 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

Activity

  1. austincondiff commented on May 17, 2024

    @austincondiff
    CollaboratorAuthor

    @plbstl I believe this was introduced in your recent PR #1707. Would you be able to take a look at this one?

  2. moved this from 🆕 New to 📋 Todo in CodeEdit Projecton May 17, 2024
  3. plbstl commented on May 18, 2024

    @plbstl
    Contributor

    I see. I'm taking a look at it now

  4. thecoolwinter commented on May 18, 2024

    @thecoolwinter
    Collaborator

    Whoops, didn't see @plbstl was taking a look. I've got a PR open for this now it was a very small fix.

  5. plbstl commented on May 19, 2024

    @plbstl
    Contributor

    Oh okay. I'll also test it out

  6. plbstl commented on May 19, 2024

    @plbstl
    Contributor

    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
  7. plbstl commented on May 19, 2024

    @plbstl
    Contributor

    This is what #1724 looks like:

    pr-1724.mov
  8. FastestMolasses commented on May 19, 2024

    @FastestMolasses
    Member

    Good catch, does this PR replace the other one entirely?

  9. plbstl commented on May 21, 2024

    @plbstl
    Contributor

    Yes it does. They are both minor changes.

  10. moved this from 📋 Todo to 🏁 Complete in CodeEdit Projecton Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    PRIORITYThis issue has priority over other issues.bugSomething isn't workingsource editor

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions