1.3.0
✨ New Features
- Debug logging - New toggle to log all git commands to console for troubleshooting (Ctrl+Shift+I to view)
🔧 Improvements
- Status badge refactor - Complete rewrite of file status badge feature
- CSS-based rendering using data-git-status attribute + ::after pseudo-element
- New GitStatusBadgeManager class with cleaner architecture
- Reduced codebase from 908 to 472 lines
- Auto pull optimization - Use onLayoutReady instead of setTimeout for startup auto-pull
- Badge updates optimization - Improved performance for badge updates and commit-on-close behavior
📝 Settings
New setting:
- Debug logging - Log git commands to console (Ctrl+Shift+I to view)
v1.3.0 发布说明
✨ 新功能
- 调试日志 - 新增调试日志开关,开启后可在控制台查看所有 git 命令执行记录,方便排查问题
🔧 改进
- 状态徽章重构 - 完全重写文件状态徽章功能
- 使用 CSS data-git-status 属性 + ::after 伪元素渲染,替代 DOM 节点操作
- 新增 GitStatusBadgeManager 类,逻辑更清晰
- 代码从 908 行精简至 472 行
- 自动拉取优化 - 使用 onLayoutReady 替代 setTimeout 处理启动时自动拉取
- 徽章更新优化 - 优化徽章更新和关闭时提交的性能
📝 设置
新增设置项:
- 调试日志 - 将 git 命令输出到控制台(Ctrl+Shift+I 查看)
Full Changelog: 1.2.2...1.3.0