diff options
Diffstat (limited to 'src/vs/platform/actions/common/actions.ts')
-rw-r--r-- | src/vs/platform/actions/common/actions.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/vs/platform/actions/common/actions.ts b/src/vs/platform/actions/common/actions.ts index 461df3221c1..a11e1185e92 100644 --- a/src/vs/platform/actions/common/actions.ts +++ b/src/vs/platform/actions/common/actions.ts @@ -35,11 +35,11 @@ export interface ISubmenuItem { rememberDefaultAction?: boolean; // for dropdown menu: if true the last executed action is remembered as the default action } -export function isIMenuItem(item: IMenuItem | ISubmenuItem): item is IMenuItem { +export function isIMenuItem(item: any): item is IMenuItem { return (item as IMenuItem).command !== undefined; } -export function isISubmenuItem(item: IMenuItem | ISubmenuItem): item is ISubmenuItem { +export function isISubmenuItem(item: any): item is ISubmenuItem { return (item as ISubmenuItem).submenu !== undefined; } @@ -109,6 +109,7 @@ export class MenuId { static readonly TestPeekTitle = new MenuId('TestPeekTitle'); static readonly TouchBarContext = new MenuId('TouchBarContext'); static readonly TitleBarContext = new MenuId('TitleBarContext'); + static readonly TitleBarTitleContext = new MenuId('TitleBarTitleContext'); static readonly TunnelContext = new MenuId('TunnelContext'); static readonly TunnelPrivacy = new MenuId('TunnelPrivacy'); static readonly TunnelProtocol = new MenuId('TunnelProtocol'); @@ -127,10 +128,12 @@ export class MenuId { static readonly CommentActions = new MenuId('CommentActions'); static readonly InteractiveToolbar = new MenuId('InteractiveToolbar'); static readonly InteractiveCellTitle = new MenuId('InteractiveCellTitle'); + static readonly InteractiveCellDelete = new MenuId('InteractiveCellDelete'); static readonly InteractiveCellExecute = new MenuId('InteractiveCellExecute'); static readonly InteractiveInputExecute = new MenuId('InteractiveInputExecute'); static readonly NotebookToolbar = new MenuId('NotebookToolbar'); static readonly NotebookCellTitle = new MenuId('NotebookCellTitle'); + static readonly NotebookCellDelete = new MenuId('NotebookCellDelete'); static readonly NotebookCellInsert = new MenuId('NotebookCellInsert'); static readonly NotebookCellBetween = new MenuId('NotebookCellBetween'); static readonly NotebookCellListTop = new MenuId('NotebookCellTop'); @@ -350,6 +353,7 @@ export class SubmenuItemAction extends SubmenuAction { constructor( readonly item: ISubmenuItem, + readonly hideActions: MenuItemActionManageActions, private readonly _menuService: IMenuService, private readonly _contextKeyService: IContextKeyService, private readonly _options?: IMenuActionOptions |