Skip to main content

Module SynchronizationProvider

Module SynchronizationProvider 

Source
Expand description

SynchronizationProvider: coordinates cross-window state synchronization.

§SynchronizationProvider (Environment)

Implements SynchronizationProvider for MountainEnvironment, providing two-way synchronisation of user data across devices.

Current status: stub. Both methods log a warning and return successfully without contacting any backend. Production work will integrate with a cloud sync service (Firebase, Supabase, or custom).

§Operations

  • PushUserData - upload local settings/keybindings/extensions/snippets snapshot to remote; detect conflicts via version vectors; queue when offline.
  • PullUserData - download latest remote snapshot; apply changes or surface conflict UI in Sky via notifications.

§Conflict resolution strategies (planned)

Latest Wins · Local Wins · Remote Wins · Manual · Three-way Merge

§VS Code reference

  • vs/workbench/services/settings/common/settingsSync.ts
  • vs/workbench/common/sync/syncService.ts