mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-11 03:09:29 +00:00
Removed File > Close Editor.
Closes arduino/arduino-ide#660 Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { MenuModelRegistry } from '@theia/core';
|
||||
import { CommonCommands } from '@theia/core/lib/browser';
|
||||
import { injectable } from '@theia/core/shared/inversify';
|
||||
import { EditorMenuContribution as TheiaEditorMenuContribution } from '@theia/editor/lib/browser/editor-menu';
|
||||
|
||||
@injectable()
|
||||
export class EditorMenuContribution extends TheiaEditorMenuContribution {
|
||||
override registerMenus(registry: MenuModelRegistry): void {
|
||||
super.registerMenus(registry);
|
||||
registry.unregisterMenuAction(CommonCommands.CLOSE_MAIN_TAB.id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user