CodeEditApp / CodeEditApp/CodeEdit

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

未關閉
#1,781 5 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
Swift
星號
23k
分支
1.2k
PR 合併指標
30 天內沒有已合併 PR

描述

### 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

貢獻指南

開啟貢獻指南

研究方向

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.

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

評估

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

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

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