CodeEditApp / CodeEditApp/CodeEdit
✨ Scroll and cursor position in file are lost when switching to another file and then back
- 主要語言
- Swift
- 星號
- 23k
- 分支
- 1.2k
- PR 合併指標
- 30 天內沒有已合併 PR
描述
### Description
When you navigate inside a file, then you go to another file keeping the previous one open and when you get back to the first file, the scroll position and of the cursor location in the first file are lost, so it automatically shows up the top of that file.
### To Reproduce
1. Open the file a.cpp and navigate through it so you go to a specific cpp function inside that file.
2. Open the file b.cpp in another tab while keeping the file a.cpp open in its tab.
3. When you get back to the opened tab of the file a.cpp, you are redirected to the top of the file a.cpp.
So when you are focusing much on a specific function in a.cpp and just wanted to check something related to that in b.cpp, when you get back to the open tab of a.cpp, you completely lost the position of the cursor on the function that you were working on.
### Expected Behavior
The position of the cursor in the open file that you left open in a tab for a while should be the same when you get back to it.
### Version Information
CodeEdit: [0.3.2]
macOS: [14.1.2 (23B92)]
### Additional Context
_No response_
### Screenshots
_No response_
貢獻指南
研究方向
No file or test is named in the issue. Start by reproducing the tab-switching flow in CodeEdit and trace where the open file's cursor and scroll state are handled; done means returning to a previously opened file restores both positions.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- swift
- 領域
- desktop
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 48/100