File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/vs/platform/extensionManagement/node Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,12 @@ export class ExtensionsDownloader extends Disposable {
68
68
this . logService . trace ( `Extension signature verification details for ${ extension . identifier . id } ${ extension . version } :\n${ sigError . output } ` ) ;
69
69
}
70
70
if ( verificationStatus === ExtensionSignaturetErrorCode . PackageIsInvalidZip || verificationStatus === ExtensionSignaturetErrorCode . SignatureArchiveIsInvalidZip ) {
71
+ try {
72
+ // Delete the downloaded vsix before throwing the error
73
+ await this . delete ( location ) ;
74
+ } catch ( error ) {
75
+ this . logService . error ( error ) ;
76
+ }
71
77
throw new ExtensionManagementError ( CorruptZipMessage , ExtensionManagementErrorCode . CorruptZip ) ;
72
78
}
73
79
} finally {
You can’t perform that action at this time.
0 commit comments