@@ -1415,36 +1415,36 @@ class ExtensionsContributions extends Disposable implements IWorkbenchContributi
1415
1415
} ) ;
1416
1416
1417
1417
this . registerExtensionAction ( {
1418
- id : TOGGLE_IGNORE_EXTENSION_ACTION_ID ,
1419
- title : { value : localize ( 'workbench.extensions.action.toggleIgnoreExtension' , "Sync This Extension" ) , original : `Sync This Extension` } ,
1418
+ id : 'workbench.extensions.action.toggleApplyToAllProfiles' ,
1419
+ title : { value : localize ( 'workbench.extensions.action.toggleApplyToAllProfiles' , "Apply Extension to all Profiles" ) , original : `Apply Extension to all Profiles` } ,
1420
+ toggled : ContextKeyExpr . has ( 'isApplicationScopedExtension' ) ,
1420
1421
menu : {
1421
1422
id : MenuId . ExtensionContext ,
1422
1423
group : '2_configure' ,
1423
- when : ContextKeyExpr . and ( CONTEXT_SYNC_ENABLEMENT , ContextKeyExpr . has ( 'inExtensionEditor ' ) . negate ( ) ) ,
1424
+ when : ContextKeyExpr . and ( ContextKeyExpr . equals ( 'extensionStatus' , 'installed' ) , ContextKeyExpr . has ( 'isDefaultApplicationScopedExtension ' ) . negate ( ) ) ,
1424
1425
order : 3
1425
1426
} ,
1426
1427
run : async ( accessor : ServicesAccessor , id : string ) => {
1427
1428
const extension = this . extensionsWorkbenchService . local . find ( e => areSameExtensions ( { id } , e . identifier ) ) ;
1428
1429
if ( extension ) {
1429
- return this . extensionsWorkbenchService . toggleExtensionIgnoredToSync ( extension ) ;
1430
+ return this . extensionsWorkbenchService . toggleApplyExtensionToAllProfiles ( extension ) ;
1430
1431
}
1431
1432
}
1432
1433
} ) ;
1433
1434
1434
1435
this . registerExtensionAction ( {
1435
- id : 'workbench.extensions.action.toggleApplyToAllProfiles' ,
1436
- title : { value : localize ( 'workbench.extensions.action.toggleApplyToAllProfiles' , "Apply Extension to all Profiles" ) , original : `Apply Extension to all Profiles` } ,
1437
- toggled : ContextKeyExpr . has ( 'isApplicationScopedExtension' ) ,
1436
+ id : TOGGLE_IGNORE_EXTENSION_ACTION_ID ,
1437
+ title : { value : localize ( 'workbench.extensions.action.toggleIgnoreExtension' , "Sync This Extension" ) , original : `Sync This Extension` } ,
1438
1438
menu : {
1439
1439
id : MenuId . ExtensionContext ,
1440
1440
group : '2_configure' ,
1441
- when : ContextKeyExpr . and ( ContextKeyExpr . equals ( 'extensionStatus' , 'installed' ) , ContextKeyExpr . has ( 'isDefaultApplicationScopedExtension ' ) . negate ( ) ) ,
1441
+ when : ContextKeyExpr . and ( CONTEXT_SYNC_ENABLEMENT , ContextKeyExpr . has ( 'inExtensionEditor ' ) . negate ( ) ) ,
1442
1442
order : 4
1443
1443
} ,
1444
1444
run : async ( accessor : ServicesAccessor , id : string ) => {
1445
1445
const extension = this . extensionsWorkbenchService . local . find ( e => areSameExtensions ( { id } , e . identifier ) ) ;
1446
1446
if ( extension ) {
1447
- return this . extensionsWorkbenchService . toggleApplyExtensionToAllProfiles ( extension ) ;
1447
+ return this . extensionsWorkbenchService . toggleExtensionIgnoredToSync ( extension ) ;
1448
1448
}
1449
1449
}
1450
1450
} ) ;
0 commit comments