@@ -1493,7 +1493,7 @@ class ExtensionsContributions extends Disposable implements IWorkbenchContributi
1493
1493
menu : {
1494
1494
id : MenuId . ExtensionContext ,
1495
1495
group : '0_install' ,
1496
- when : ContextKeyExpr . and ( ContextKeyExpr . equals ( 'extensionStatus' , 'uninstalled' ) , ContextKeyExpr . has ( 'isGalleryExtension' ) , CONTEXT_SYNC_ENABLEMENT ) ,
1496
+ when : ContextKeyExpr . and ( ContextKeyExpr . equals ( 'extensionStatus' , 'uninstalled' ) , ContextKeyExpr . has ( 'isGalleryExtension' ) , ContextKeyExpr . not ( 'extensionDisallowInstall' ) , CONTEXT_SYNC_ENABLEMENT ) ,
1497
1497
order : 1
1498
1498
} ,
1499
1499
run : async ( accessor : ServicesAccessor , extensionId : string ) => {
@@ -1516,7 +1516,7 @@ class ExtensionsContributions extends Disposable implements IWorkbenchContributi
1516
1516
menu : {
1517
1517
id : MenuId . ExtensionContext ,
1518
1518
group : '0_install' ,
1519
- when : ContextKeyExpr . and ( ContextKeyExpr . equals ( 'extensionStatus' , 'uninstalled' ) , ContextKeyExpr . has ( 'isGalleryExtension' ) , ContextKeyExpr . has ( 'extensionHasPreReleaseVersion' ) , CONTEXT_SYNC_ENABLEMENT ) ,
1519
+ when : ContextKeyExpr . and ( ContextKeyExpr . equals ( 'extensionStatus' , 'uninstalled' ) , ContextKeyExpr . has ( 'isGalleryExtension' ) , ContextKeyExpr . has ( 'extensionHasPreReleaseVersion' ) , ContextKeyExpr . not ( 'extensionDisallowInstall' ) , CONTEXT_SYNC_ENABLEMENT ) ,
1520
1520
order : 2
1521
1521
} ,
1522
1522
run : async ( accessor : ServicesAccessor , extensionId : string ) => {
@@ -1540,7 +1540,7 @@ class ExtensionsContributions extends Disposable implements IWorkbenchContributi
1540
1540
menu : {
1541
1541
id : MenuId . ExtensionContext ,
1542
1542
group : '0_install' ,
1543
- when : ContextKeyExpr . and ( ContextKeyExpr . equals ( 'extensionStatus' , 'uninstalled' ) , ContextKeyExpr . has ( 'isGalleryExtension' ) ) ,
1543
+ when : ContextKeyExpr . and ( ContextKeyExpr . equals ( 'extensionStatus' , 'uninstalled' ) , ContextKeyExpr . has ( 'isGalleryExtension' ) , ContextKeyExpr . not ( 'extensionDisallowInstall' ) ) ,
1544
1544
order : 3
1545
1545
} ,
1546
1546
run : async ( accessor : ServicesAccessor , extensionId : string ) => {
0 commit comments