File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
src/vs/platform/userDataSync/common Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -187,6 +187,11 @@ export class UserDataProfilesManifestSynchroniser extends AbstractSynchroniser i
187
187
188
188
if ( localChange !== Change . None ) {
189
189
await this . backupLocal ( stringifyLocalProfiles ( this . getLocalUserDataProfiles ( ) , false ) ) ;
190
+ await Promise . all ( local . removed . map ( async profile => {
191
+ this . logService . trace ( `${ this . syncResourceLogLabel } : Removing '${ profile . name } ' profile...` ) ;
192
+ await this . userDataProfilesService . removeProfile ( profile ) ;
193
+ this . logService . info ( `${ this . syncResourceLogLabel } : Removed profile '${ profile . name } '.` ) ;
194
+ } ) ) ;
190
195
const promises : Promise < any > [ ] = [ ] ;
191
196
for ( const profile of local . added ) {
192
197
promises . push ( ( async ( ) => {
@@ -195,13 +200,6 @@ export class UserDataProfilesManifestSynchroniser extends AbstractSynchroniser i
195
200
this . logService . info ( `${ this . syncResourceLogLabel } : Created profile '${ profile . name } '.` ) ;
196
201
} ) ( ) ) ;
197
202
}
198
- for ( const profile of local . removed ) {
199
- promises . push ( ( async ( ) => {
200
- this . logService . trace ( `${ this . syncResourceLogLabel } : Removing '${ profile . name } ' profile...` ) ;
201
- await this . userDataProfilesService . removeProfile ( profile ) ;
202
- this . logService . info ( `${ this . syncResourceLogLabel } : Removed profile '${ profile . name } '.` ) ;
203
- } ) ( ) ) ;
204
- }
205
203
for ( const profile of local . updated ) {
206
204
const localProfile = this . userDataProfilesService . profiles . find ( p => p . id === profile . id ) ;
207
205
if ( localProfile ) {
You can’t perform that action at this time.
0 commit comments