Skip to content

Commit

Permalink
remove dev tools menu item (arduino#882)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto Iannaccone authored Mar 8, 2022
1 parent 04c3d0c commit 9e89964
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arduino-ide-extension/src/browser/contributions/help.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
} from './contribution';
import { nls } from '@theia/core/lib/common';
import { IDEUpdaterCommands } from '../ide-updater/ide-updater-commands';
import { ElectronCommands } from '@theia/core/lib/electron-browser/menu/electron-menu-contribution';

@injectable()
export class Help extends Contribution {
Expand Down Expand Up @@ -87,6 +88,10 @@ export class Help extends Contribution {
}

registerMenus(registry: MenuModelRegistry): void {
registry.unregisterMenuAction({
commandId: ElectronCommands.TOGGLE_DEVELOPER_TOOLS.id,
});

registry.registerMenuAction(ArduinoMenus.HELP__MAIN_GROUP, {
commandId: Help.Commands.GETTING_STARTED.id,
order: '0',
Expand Down

0 comments on commit 9e89964

Please sign in to comment.