diff --git a/src/vs/platform/extensionManagement/node/extensionManagementService.ts b/src/vs/platform/extensionManagement/node/extensionManagementService.ts index 7f9028c0cf4..6c7b92de0ef 100644 --- a/src/vs/platform/extensionManagement/node/extensionManagementService.ts +++ b/src/vs/platform/extensionManagement/node/extensionManagementService.ts @@ -570,7 +570,7 @@ export class ExtensionsScanner extends Disposable { } async removeExtension(extension: ILocalExtension | IScannedExtension, type: string): Promise { - if (this.uriIdentityService.extUri.isEqualOrParent(this.extensionsScannerService.userExtensionsLocation, extension.location)) { + if (this.uriIdentityService.extUri.isEqualOrParent(extension.location, this.extensionsScannerService.userExtensionsLocation)) { return this.deleteExtensionFromLocation(extension.identifier.id, extension.location, type); } }