UNPKG

@sussudio/platform

Version:

Internal APIs for VS Code's service injection the base services.

26 lines (25 loc) 990 B
/*--------------------------------------------------------------------------------------------- * 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 'vscode-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'); } }