You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewExtensionManagementError(nls.localize('malicious extension',"Can't install '{0}' extension since it was reported to be problematic.",extension.identifier.id),ExtensionManagementErrorCode.Malicious);
thrownewExtensionManagementError(nls.localize('notFoundCompatiblePrereleaseDependency',"Can't install pre-release version of '{0}' extension because it is not compatible with the current version of {1} (version {2}).",extension.identifier.id,this.productService.nameLong,this.productService.version),ExtensionManagementErrorCode.IncompatiblePreRelease);
472
-
}
473
-
}else{
469
+
if(!compatibleExtension){
474
470
/** If no compatible release version is found, check if the extension has a release version or not and throw relevant error */
thrownewExtensionManagementError(nls.localize('notFoundReleaseExtension',"Can't install release version of '{0}' extension because it has no release version.",extension.identifier.id),ExtensionManagementErrorCode.ReleaseVersionNotFound);
this.logService.info(`${syncResourceLogLabel}: Skipped synchronizing extension because the compatible extension is not found.`,gallery.displayName||gallery.identifier.id);
thrownewExtensionManagementError(localize('notFoundCompatiblePrereleaseDependency',"Can't install pre-release version of '{0}' extension because it is not compatible with the current version of {1} (version {2}).",extension.identifier.id,this.productService.nameLong,this.productService.version),ExtensionManagementErrorCode.IncompatiblePreRelease);
135
-
}
136
-
}else{
132
+
if(!compatibleExtension){
137
133
/** If no compatible release version is found, check if the extension has a release version or not and throw relevant error */
thrownewExtensionManagementError(localize('notFoundReleaseExtension',"Can't install release version of '{0}' extension because it has no release version.",extension.identifier.id),ExtensionManagementErrorCode.ReleaseVersionNotFound);
0 commit comments