UNPKG

sussudio

Version:

An unofficial VS Code Internal API

26 lines (25 loc) 1.09 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { localize } from "../../../nls.mjs"; import { Categories } from "../../action/common/actionCommonCategories.mjs"; import { Action2, IMenuService } from "./actions.mjs"; import { ILogService } from "../../log/common/log.mjs"; export class MenuHiddenStatesReset extends Action2 { constructor() { super({ id: 'menu.resetHiddenStates', title: { value: localize('title', 'Reset All Menus'), original: 'Reset All Menus' }, category: Categories.View, f1: true }); } run(accessor) { accessor.get(IMenuService).resetHiddenStates(); accessor.get(ILogService).info('did RESET all menu hidden states'); } }