Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

🐞 Opening a folder with source files only shows empty files in the editor

Open
#1,781 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
swift
Domain
desktop

Research direction

Start by reproducing the issue through the “Open file or folder” entry point with a folder containing .h and .cpp files on macOS. Trace the folder-opening and editor-loading path, then verify that opening those source files displays their contents while standard text files continue to work.

Written by the indexing model from the issue text.

Description

bug
Description

When I click Open file or folder and select a folder containing *.h and *.cpp source files, the file tree is correctly displayed. But when I try to open a source file in the editor, it only shows an empty file.
However when I open a standard text file which is also contained in the folder, the file contents show normally.

To Reproduce
  1. Click Open file or folder
  2. Open a folder containing *.h and *.cpp files
  3. Open a file in the editor
Expected Behavior

The editor should show the file contents.

Version Information

CodeEdit: Current GitHub clone (Commit #1718)
macOS: 14.5.1
Xcode: 15.4

Additional Context

No response

Screenshots
Screenshot 2024-06-27 at 06 30 52
Dominant language
Swift
Stars
23k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CodeEditApp/CodeEdit

All issues in CodeEditApp/CodeEdit

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.