Skip to content

🐞 CodeEdit opens most files as blank text files even when a workspace is active #1698

@plbstl

Description

@plbstl

Description

Related to #1026

Basically files other than supported images are opened as blank text files.

Tested formats

Images (the ones Preview can open, works as normal): .cur, .djvu, .jpg, .jpeg, .png, .heic, .gif, .bmp, .ico

Audio: .mp2, .mp3, .flac, .aac, .m4a, .wav

Videos: .hevc, .3gp, .opus, .wmv, .vob, .mpeg, .mkv, .m4v, .webm, .avi, .mov

Archives: .7z, .rar, .zip

Documents: .pdf, .bin, .ppt, .doc, .ods, .azw3, .mobi, .dfont, .woff

.csv works as a text file

To Reproduce

Attempt to open any of the above files in CodeEdit

Expected Behavior

To either preview the file, show an informative message or a placeholder file icon.

Version Information

CodeEdit: 0.1.0-alpha
macOS: 14.4.1
Xcode: 15.3

Additional Context

Xcode shows a thumbnail image (same one that shows up in Finder) when it is unable to preview a file.

xcode file tree view 2

Although, the file icons in the Project Navigator tries to be as close to the file type as possible.

xcode file tree view

Screenshots

codeedit file tree view

Metadata

Metadata

Assignees

Labels

UIThis is UI relatedbugSomething isn't workingnavigator

Type

No type

Projects

Status

🏁 Complete

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions