663
664
protected async updateLastSyncUserData(lastSyncRemoteUserData: IRemoteUserData, additionalProps: IStringDictionary<any> = {}): Promise<void> {
666
throw new Error('Cannot have core properties as additional');
667
}
669
>
const version = this.userDataSyncEnablementService.getResourceSyncStateVersion(this.resource);
670
>
const lastSyncUserDataState: ILastSyncUserDataState = {
671
>
ref: lastSyncRemoteUserData.ref,
672
>
version,
673
>
...additionalProps
674
>
};
675
>
676
>
this.storageService.store(this.lastSyncUserDataStateKey, JSON.stringify(lastSyncUserDataState), StorageScope.APPLICATION, StorageTarget.MACHINE);
677
>
await this.writeLastSyncStoredRemoteUserData(lastSyncRemoteUserData);
678
>
}
679
680
private getStoredLastSyncUserDataStateContent(): string | undefined {