UNPKG

sussudio

Version:

An unofficial VS Code Internal API

17 lines (16 loc) 1.05 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { IMenu, IMenuCreateOptions, IMenuService, MenuId } from "./actions.mjs"; import { ICommandService } from "../../commands/common/commands.mjs"; import { IContextKeyService } from "../../contextkey/common/contextkey.mjs"; import { IStorageService } from "../../storage/common/storage.mjs"; export declare class MenuService implements IMenuService { private readonly _commandService; readonly _serviceBrand: undefined; private readonly _hiddenStates; constructor(_commandService: ICommandService, storageService: IStorageService); createMenu(id: MenuId, contextKeyService: IContextKeyService, options?: IMenuCreateOptions): IMenu; resetHiddenStates(ids?: MenuId[]): void; }