initialize statu

This commit is contained in:
Sandeep Somavarapu
2019-09-18 13:51:58 +02:00
parent c813ee9ca7
commit 6a81e81b03
2 changed files with 5 additions and 1 deletions

View File

@@ -31,7 +31,10 @@ export class UserDataSyncService extends Disposable implements IUserDataSyncServ
) {
super();
this.channel = sharedProcessService.getChannel('userDataSync');
this._register(this.channel.listen<SyncStatus>('onDidChangeStatus')(status => this.updateStatus(status)));
this.channel.call<SyncStatus>('_getInitialStatus').then(status => {
this.updateStatus(status);
this._register(this.channel.listen<SyncStatus>('onDidChangeStatus')(status => this.updateStatus(status)));
});
}
sync(_continue?: boolean): Promise<boolean> {