This repository was archived by the owner on Apr 13, 2026. It is now read-only.
perf: 异步化文件树读取与浏览器体验优化 - #127
Merged
Merged
Conversation
added 2 commits
February 12, 2026 15:32
sorrycc
approved these changes
Feb 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
文件变更摘要表
src/main/plugins/fs/index.tsgetFileTree调用改为异步调用src/main/plugins/fs/tree.tssrc/renderer/components/Browser/NavBar.tsxsrc/renderer/components/ContentPanel/ContentTabBar.tsxsrc/renderer/components/ContentPanel/panes/BrowserPane.tsxsrc/renderer/components/ContentPanel/useContentTabs.tssrc/renderer/components/SecondarySidebar/FileTree.tsxsrc/renderer/components/TreeNode/index.csssrc/renderer/components/TreeNode/index.tsxsrc/renderer/styles/seti.css执行摘要
本次变更主要围绕文件系统性能优化和浏览器功能增强两大核心主题展开。主要改进包括:
异步文件树构建:将同步文件系统操作改为异步,提升应用响应性
浏览器用户体验优化:新增空白页状态、改进导航逻辑
标签管理改进:支持不可关闭的标签类型
代码清理:移除冗余样式文件,修复资源路径
功能分析
新功能
浏览器空白页状态:当没有URL时显示友好的引导界面
智能导航:支持从空白页返回历史记录的功能
标签保护机制:编辑器标签默认不可关闭
修改功能
文件树构建:从同步改为异步,支持错误处理和并行处理
浏览器导航栏:inspect按钮变为可选显示
默认标签配置:新增浏览器标签作为默认标签之一
移除功能
技术实现细节
异步文件系统重构
浏览器导航改进
空白页检测:新增
showBlankPage状态管理智能回退:当无法后退时显示空白页而非禁用按钮
前进逻辑:支持从空白页恢复到历史页面
标签管理增强
不可关闭标签:通过
closable属性控制默认标签顺序:调整为
[editor, terminal, browser]影响评估
系统架构影响
性能提升:异步文件操作减少主线程阻塞
用户体验:浏览器功能更加完善和直观
代码质量:移除冗余文件,统一样式管理
兼容性影响
向后兼容:所有API变更均为内部实现,不影响外部接口
文件路径:修复了字体文件路径,确保在不同环境下正常加载
开发工作流影响