Skip to content

Commit 36f67de

Browse files
committed
reset only map
1 parent 2fdf216 commit 36f67de

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/vs/code/electron-browser/sharedProcess/contrib/extensionsCleaner.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ class ProfileExtensionsCleaner extends Disposable {
6262
}
6363

6464
private async initialize(): Promise<boolean> {
65-
this.profileExtensionsLocations.clear();
6665
if (this.userDataProfilesService.profiles.length === 1) {
6766
return true;
6867
}
@@ -88,7 +87,7 @@ class ProfileExtensionsCleaner extends Disposable {
8887
await Promise.all(added.map(profile => profile.extensionsResource ? this.populateExtensionsFromProfile(profile.extensionsResource) : Promise.resolve()));
8988
await Promise.all(removed.map(profile => profile.extensionsResource ? this.removeExtensionsFromProfile(profile.extensionsResource) : Promise.resolve()));
9089
if (all.length === 1) {
91-
this.initPromise = this.initialize();
90+
this.profileExtensionsLocations.clear();
9291
}
9392
}
9493

0 commit comments

Comments
 (0)