remove the extension action to apply in all profiles #157492 (#187815)

This commit is contained in:
Sandeep Somavarapu 2023-07-13 14:09:05 +02:00 committed by GitHub
parent 7895f9bc23
commit 429d6d203a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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` },