#85216 methods to know if synced before

This commit is contained in:
Sandeep Somavarapu
2020-01-13 08:37:02 +01:00
parent 22e4d75bd0
commit 528202e34f
9 changed files with 92 additions and 0 deletions

View File

@@ -53,6 +53,14 @@ export class SettingsSyncService extends Disposable implements ISettingsSyncServ
this.channel.call('stop');
}
hasPreviouslySynced(): Promise<boolean> {
return this.channel.call('hasPreviouslySynced');
}
hasRemote(): Promise<boolean> {
return this.channel.call('hasRemote');
}
resolveConflicts(conflicts: { key: string, value: any | undefined }[]): Promise<void> {
return this.channel.call('resolveConflicts', [conflicts]);
}

View File

@@ -46,6 +46,14 @@ export class UserDataSyncService extends Disposable implements IUserDataSyncServ
this.channel.call('stop');
}
hasPreviouslySynced(): Promise<boolean> {
return this.channel.call('hasPreviouslySynced');
}
hasRemote(): Promise<boolean> {
return this.channel.call('hasRemote');
}
removeExtension(identifier: IExtensionIdentifier): Promise<void> {
return this.channel.call('removeExtension', [identifier]);
}