Skip to content

Commit de461e0

Browse files
authored
1 parent 6ca676c commit de461e0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/vs/platform/extensionManagement/node/extensionManagementService.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,10 @@ export class ExtensionManagementService extends AbstractExtensionManagementServi
317317

318318
private async onDidChangeExtensionsFromAnotherSource({ added, removed }: DidChangeProfileExtensionsEvent): Promise<void> {
319319
if (removed) {
320-
for (const identifier of removed.extensions) {
320+
const removedExtensions = added && this.uriIdentityService.extUri.isEqual(removed.profileLocation, added.profileLocation)
321+
? removed.extensions.filter(e => added.extensions.every(identifier => !areSameExtensions(identifier, e)))
322+
: removed.extensions;
323+
for (const identifier of removedExtensions) {
321324
this.logService.info('Extensions removed from another source', identifier.id, removed.profileLocation.toString());
322325
this._onDidUninstallExtension.fire({ identifier, profileLocation: removed.profileLocation });
323326
}

0 commit comments

Comments
 (0)