Skip to content

Commit

Permalink
remove the extension action to apply in all profiles #157492
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 committed Jul 13, 2023
1 parent 2f1013a commit 82790c4
Showing 1 changed file with 0 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1442,24 +1442,6 @@ class ExtensionsContributions extends Disposable implements IWorkbenchContributi
}
});

this.registerExtensionAction({
id: 'workbench.extensions.action.toggleApplyToAllProfiles',
title: { value: localize('workbench.extensions.action.toggleApplyToAllProfiles', "Apply this Extension to all Profiles"), original: `Apply this Extension to all Profiles` },
toggled: ContextKeyExpr.has('isApplicationScopedExtension'),
menu: {
id: MenuId.ExtensionContext,
group: '2_configure',
when: ContextKeyExpr.and(ContextKeyExpr.equals('extensionStatus', 'installed'), ContextKeyExpr.has('isDefaultApplicationScopedExtension').negate()),
order: 4
},
run: async (accessor: ServicesAccessor, id: string) => {
const extension = this.extensionsWorkbenchService.local.find(e => areSameExtensions({ id }, e.identifier));
if (extension) {
return this.extensionsWorkbenchService.toggleApplyExtensionToAllProfiles(extension);
}
}
});

this.registerExtensionAction({
id: 'workbench.extensions.action.ignoreRecommendation',
title: { value: localize('workbench.extensions.action.ignoreRecommendation', "Ignore Recommendation"), original: `Ignore Recommendation` },
Expand Down

0 comments on commit 82790c4

Please sign in to comment.