Skip to content

Commit 9e89964

Browse files
author
Alberto Iannaccone
authored
remove dev tools menu item (#882)
1 parent 04c3d0c commit 9e89964

File tree

1 file changed

+5
-0
lines changed
  • arduino-ide-extension/src/browser/contributions

1 file changed

+5
-0
lines changed

Diff for: arduino-ide-extension/src/browser/contributions/help.ts

+5
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
} from './contribution';
1515
import { nls } from '@theia/core/lib/common';
1616
import { IDEUpdaterCommands } from '../ide-updater/ide-updater-commands';
17+
import { ElectronCommands } from '@theia/core/lib/electron-browser/menu/electron-menu-contribution';
1718

1819
@injectable()
1920
export class Help extends Contribution {
@@ -87,6 +88,10 @@ export class Help extends Contribution {
8788
}
8889

8990
registerMenus(registry: MenuModelRegistry): void {
91+
registry.unregisterMenuAction({
92+
commandId: ElectronCommands.TOGGLE_DEVELOPER_TOOLS.id,
93+
});
94+
9095
registry.registerMenuAction(ArduinoMenus.HELP__MAIN_GROUP, {
9196
commandId: Help.Commands.GETTING_STARTED.id,
9297
order: '0',

0 commit comments

Comments
 (0)