feat: Add VS Code Settings Sync integration #2324
Open
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.
🎯 Feature Overview
Implements cross-device settings synchronization for KiloCode using VS Code's built-in Settings Sync infrastructure. This addresses the user request in Discussion #2057 where users need to manually reconfigure settings on each device.
✨ What's New
kilo-code.enableSettingsSync
setting (default: enabled)🛠 Technical Implementation
Core Components
SettingsSyncService (
src/services/settings-sync/SettingsSyncService.ts
)Configuration Setting
kilo-code.enableSettingsSync
(boolean, default: true)Extension Integration
Synchronized Data
The following settings are automatically synchronized across devices:
Note: API keys remain in VS Code's secure secrets storage and are already synchronized by VS Code itself.
🧪 Testing
📋 Usage
For Users
For Developers
🔄 User Experience
Before:
After:
🎨 Design Decisions
⚡ Performance Impact
🧪 Verification Steps
To test this feature:
enableSettingsSync
and verify sync stops📖 Related
ExtensionContext.globalState.setKeysForSync
🏁 Summary
This implementation provides a seamless, native integration with VS Code Settings Sync that requires zero user configuration while offering complete control for those who want it. It leverages existing VS Code infrastructure for security and reliability while providing the cross-device sync experience users requested.
Ready for review and testing! 🚀