Fix recently-broken cleanup of obsolete (superseded) extension folders (#189335)

This commit is contained in:
John Murray
2023-08-02 09:12:08 +01:00
committed by GitHub
parent 360b462e02
commit 605fa783a0

View File

@@ -570,7 +570,7 @@ export class ExtensionsScanner extends Disposable {
}
async removeExtension(extension: ILocalExtension | IScannedExtension, type: string): Promise<void> {
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);
}
}