Skip to content

Commit

Permalink
Fixes #134673: Add Show Running Extensions to the ... menu of the…
Browse files Browse the repository at this point in the history
… Extensions viewlet
  • Loading branch information
alexdima committed Mar 2, 2022
1 parent 929f1e3 commit 38c2e58
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { IContextMenuService } from 'vs/platform/contextview/browser/contextView
import { memoize } from 'vs/base/common/decorators';
import { isNonEmptyArray } from 'vs/base/common/arrays';
import { INotificationService } from 'vs/platform/notification/common/notification';
import { IContextKeyService } from 'vs/platform/contextkey/common/contextkey';
import { ContextKeyExpr, IContextKeyService } from 'vs/platform/contextkey/common/contextkey';
import { IStorageService } from 'vs/platform/storage/common/storage';
import { ILabelService } from 'vs/platform/label/common/label';
import { renderLabelWithIcons } from 'vs/base/browser/ui/iconLabel/iconLabels';
Expand All @@ -34,7 +34,7 @@ import { editorBackground } from 'vs/platform/theme/common/colorRegistry';
import { IListAccessibilityProvider } from 'vs/base/browser/ui/list/listWidget';
import { IEditorService } from 'vs/workbench/services/editor/common/editorService';
import { RuntimeExtensionsInput } from 'vs/workbench/contrib/extensions/common/runtimeExtensionsInput';
import { Action2 } from 'vs/platform/actions/common/actions';
import { Action2, MenuId } from 'vs/platform/actions/common/actions';
import { CATEGORIES } from 'vs/workbench/common/actions';

interface IExtensionProfileInformation {
Expand Down Expand Up @@ -481,7 +481,13 @@ export class ShowRuntimeExtensionsAction extends Action2 {
id: 'workbench.action.showRuntimeExtensions',
title: { value: nls.localize('showRuntimeExtensions', "Show Running Extensions"), original: 'Show Running Extensions' },
category: CATEGORIES.Developer,
f1: true
f1: true,
menu: {
id: MenuId.ViewContainerTitle,
when: ContextKeyExpr.equals('viewContainer', 'workbench.view.extensions'),
group: '2_enablement',
order: 3
}
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ registerAction2(class extends Action2 {
id: MenuId.ViewContainerTitle,
when: ContextKeyExpr.equals('viewContainer', 'workbench.view.extensions'),
group: '2_enablement',
order: 3
order: 4
}
});
}
Expand Down

0 comments on commit 38c2e58

Please sign in to comment.