mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-09 18:38:33 +00:00
Cleaned up File menu.
Removed: - `New File`, - `New Window`. Closes #1014. Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
This commit is contained in:
@@ -21,6 +21,7 @@ export class CommonFrontendContribution extends TheiaCommonFrontendContribution
|
||||
CommonCommands.TOGGLE_MAXIMIZED,
|
||||
CommonCommands.PIN_TAB,
|
||||
CommonCommands.UNPIN_TAB,
|
||||
CommonCommands.NEW_FILE,
|
||||
]) {
|
||||
commandRegistry.unregisterCommand(command);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
import { injectable } from '@theia/core/shared/inversify';
|
||||
import { WindowContribution as TheiaWindowContribution } from '@theia/core/lib/browser/window-contribution';
|
||||
|
||||
@injectable()
|
||||
export class WindowContribution extends TheiaWindowContribution {
|
||||
override registerCommands(): void {
|
||||
// NOOP
|
||||
}
|
||||
override registerKeybindings(): void {
|
||||
// NOO
|
||||
}
|
||||
override registerMenus(): void {
|
||||
// NOOP;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user