mirror of
https://github.com/microsoft/vscode.git
synced 2026-08-29 17:19:41 +01:00
reorder actions (#188158)
This commit is contained in:
@@ -1414,23 +1414,6 @@ class ExtensionsContributions extends Disposable implements IWorkbenchContributi
|
||||
run: async (accessor: ServicesAccessor, id: string) => accessor.get(IPreferencesService).openGlobalKeybindingSettings(false, { query: `@ext:${id}` })
|
||||
});
|
||||
|
||||
this.registerExtensionAction({
|
||||
id: TOGGLE_IGNORE_EXTENSION_ACTION_ID,
|
||||
title: { value: localize('workbench.extensions.action.toggleIgnoreExtension', "Sync This Extension"), original: `Sync This Extension` },
|
||||
menu: {
|
||||
id: MenuId.ExtensionContext,
|
||||
group: '2_configure',
|
||||
when: ContextKeyExpr.and(CONTEXT_SYNC_ENABLEMENT, ContextKeyExpr.has('inExtensionEditor').negate()),
|
||||
order: 3
|
||||
},
|
||||
run: async (accessor: ServicesAccessor, id: string) => {
|
||||
const extension = this.extensionsWorkbenchService.local.find(e => areSameExtensions({ id }, e.identifier));
|
||||
if (extension) {
|
||||
return this.extensionsWorkbenchService.toggleExtensionIgnoredToSync(extension);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
this.registerExtensionAction({
|
||||
id: 'workbench.extensions.action.toggleApplyToAllProfiles',
|
||||
title: { value: localize('workbench.extensions.action.toggleApplyToAllProfiles', "Apply Extension to all Profiles"), original: `Apply Extension to all Profiles` },
|
||||
@@ -1439,7 +1422,7 @@ class ExtensionsContributions extends Disposable implements IWorkbenchContributi
|
||||
id: MenuId.ExtensionContext,
|
||||
group: '2_configure',
|
||||
when: ContextKeyExpr.and(ContextKeyExpr.equals('extensionStatus', 'installed'), ContextKeyExpr.has('isDefaultApplicationScopedExtension').negate()),
|
||||
order: 4
|
||||
order: 3
|
||||
},
|
||||
run: async (accessor: ServicesAccessor, id: string) => {
|
||||
const extension = this.extensionsWorkbenchService.local.find(e => areSameExtensions({ id }, e.identifier));
|
||||
@@ -1449,6 +1432,23 @@ class ExtensionsContributions extends Disposable implements IWorkbenchContributi
|
||||
}
|
||||
});
|
||||
|
||||
this.registerExtensionAction({
|
||||
id: TOGGLE_IGNORE_EXTENSION_ACTION_ID,
|
||||
title: { value: localize('workbench.extensions.action.toggleIgnoreExtension', "Sync This Extension"), original: `Sync This Extension` },
|
||||
menu: {
|
||||
id: MenuId.ExtensionContext,
|
||||
group: '2_configure',
|
||||
when: ContextKeyExpr.and(CONTEXT_SYNC_ENABLEMENT, ContextKeyExpr.has('inExtensionEditor').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.toggleExtensionIgnoredToSync(extension);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
this.registerExtensionAction({
|
||||
id: 'workbench.extensions.action.ignoreRecommendation',
|
||||
title: { value: localize('workbench.extensions.action.ignoreRecommendation', "Ignore Recommendation"), original: `Ignore Recommendation` },
|
||||
|
||||
Reference in New Issue
Block a user