@@ -1415,36 +1415,36 @@ class ExtensionsContributions extends Disposable implements IWorkbenchContributi
14151415 } ) ;
14161416
14171417 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' ) ,
14201421 menu : {
14211422 id : MenuId . ExtensionContext ,
14221423 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 ( ) ) ,
14241425 order : 3
14251426 } ,
14261427 run : async ( accessor : ServicesAccessor , id : string ) => {
14271428 const extension = this . extensionsWorkbenchService . local . find ( e => areSameExtensions ( { id } , e . identifier ) ) ;
14281429 if ( extension ) {
1429- return this . extensionsWorkbenchService . toggleExtensionIgnoredToSync ( extension ) ;
1430+ return this . extensionsWorkbenchService . toggleApplyExtensionToAllProfiles ( extension ) ;
14301431 }
14311432 }
14321433 } ) ;
14331434
14341435 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` } ,
14381438 menu : {
14391439 id : MenuId . ExtensionContext ,
14401440 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 ( ) ) ,
14421442 order : 4
14431443 } ,
14441444 run : async ( accessor : ServicesAccessor , id : string ) => {
14451445 const extension = this . extensionsWorkbenchService . local . find ( e => areSameExtensions ( { id } , e . identifier ) ) ;
14461446 if ( extension ) {
1447- return this . extensionsWorkbenchService . toggleApplyExtensionToAllProfiles ( extension ) ;
1447+ return this . extensionsWorkbenchService . toggleExtensionIgnoredToSync ( extension ) ;
14481448 }
14491449 }
14501450 } ) ;
0 commit comments