730
731
protected async updateRemoteUserData(content: string, ref: string | null): Promise<IRemoteUserData> {
733
>
const syncData: ISyncData = { version: this.version, machineId, content };
734
>
try {
735
>
ref = await this.userDataSyncStoreService.writeResource(this.resource, JSON.stringify(syncData), ref, this.collection, this.syncHeaders);
736
>
return { ref, syncData };
737
>
} catch (error) {
738
if (error instanceof UserDataSyncError && error.code === UserDataSyncErrorCode.TooLarge) {
739
error = new UserDataSyncError(error.message, error.code, this.resource);