Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

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

未關閉
#1,781 5 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
35/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
swift
領域
desktop

研究方向

首先,在 macOS 上準備一個包含 .h 和 .cpp 檔案的資料夾,透過“Open file or folder”入口重現此問題。追蹤資料夾開啟和編輯器載入的路徑,然後確認開啟這些原始碼檔案時會顯示其內容,同時標準文字檔案仍可正常運作。

由索引模型根據 Issue 內容生成。

描述

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
主要語言
Swift
星號
23k
分支
1.2k
PR 合併指標
30 天內沒有已合併 PR

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

CodeEditApp/CodeEdit 的其他 Issue

查看 CodeEditApp/CodeEdit 的全部 Issue

相似的 Issue

更多 Swift Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。