Skip to main content

SetAppMenu

Function SetAppMenu 

Source
pub fn SetAppMenu(App: &App)
Expand description

Install a custom app menu on App, removing Undo/Redo from the Edit submenu so Cmd+Z reaches VS Code’s Monaco keybinding handler.

Called once from AppLifecycleSetup immediately after the main window is built. A failure here is non-fatal (logs a warning and skips the override so the default menu remains).