Skip to content

Commit ebd145c

Browse files
authored
fix(core): 重构核心模块代码,修复用户设置导出失败的问题 (#27)
- 重新组织核心模块结构,增加 interfaces.ts、errorHandler.ts 和 logger.ts 文件 - 优化 ConfigurationManager 类,增加配置验证和错误处理功能 - 新增 DataProvider 类,负责收集扩展、设置、主题和代码片段数据 - 实现 SyncManager 类,统一管理和执行导出/导入操作 - 改进错误处理机制,增加 SyncError 类和 ErrorHandler 类 - 采用单例模式实现全局日志器 Logger
1 parent 98964ae commit ebd145c

18 files changed

+1818
-1382
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ dist
44
node_modules
55
.vscode-test/
66
*.vsix
7+
REFACTORING_SUMMARY.md
78
tmp

README-CN.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,7 @@ code --install-extension vscode-syncing
7575

7676
## 📝 更新日志
7777

78-
### 0.0.4
79-
80-
- 🎉 初始版本发布
81-
- 支持设置和插件列表的同步
82-
83-
### 0.0.6
84-
85-
- fix: 优化获取 VSCode 是否为便携版的逻辑
78+
[更新日志](./CHANGELOG.md)
8679

8780
---
8881

README.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,7 @@ The extension will automatically adapt to the remote server's file system and sy
7474

7575
## 📝 Changelog
7676

77-
### 0.0.4
78-
79-
- 🎉 Initial release
80-
- Support for settings and extension sync
81-
82-
### 0.0.6
83-
84-
- fix: optimize logic for detecting whether VSCode is in portable mode
85-
- Updated the way the VSCODE_PORTABLE environment variable is checked to ensure it's evaluated as a boolean, improving code readability and reliability.
77+
[Changelog](./CHANGELOG.md)
8678

8779
---
8880

src/configurationManager.ts

Lines changed: 0 additions & 139 deletions
This file was deleted.

0 commit comments

Comments
 (0)