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:
Akos Kitta
2022-06-17 11:54:47 +02:00
committed by Akos Kitta
parent f5cee97fef
commit 27dd120e5d
3 changed files with 22 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ export class CommonFrontendContribution extends TheiaCommonFrontendContribution
CommonCommands.TOGGLE_MAXIMIZED,
CommonCommands.PIN_TAB,
CommonCommands.UNPIN_TAB,
CommonCommands.NEW_FILE,
]) {
commandRegistry.unregisterCommand(command);
}

View File

@@ -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;
}
}