File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/vs/platform/userDataProfile/common Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -415,10 +415,12 @@ export class UserDataProfilesService extends Disposable implements IUserDataProf
415
415
if ( ! this . enabled ) {
416
416
return ;
417
417
}
418
- const stat = await this . fileService . resolve ( this . profilesHome ) ;
419
- await Promise . all ( ( stat . children || [ ] )
420
- . filter ( child => child . isDirectory && this . profiles . every ( p => ! this . uriIdentityService . extUri . isEqual ( p . location , child . resource ) ) )
421
- . map ( child => this . fileService . del ( child . resource , { recursive : true } ) ) ) ;
418
+ if ( await this . fileService . exists ( this . profilesHome ) ) {
419
+ const stat = await this . fileService . resolve ( this . profilesHome ) ;
420
+ await Promise . all ( ( stat . children || [ ] )
421
+ . filter ( child => child . isDirectory && this . profiles . every ( p => ! this . uriIdentityService . extUri . isEqual ( p . location , child . resource ) ) )
422
+ . map ( child => this . fileService . del ( child . resource , { recursive : true } ) ) ) ;
423
+ }
422
424
}
423
425
424
426
async cleanUpTransientProfiles ( ) : Promise < void > {
You can’t perform that action at this time.
0 commit comments