Skip to content

Commit 121b095

Browse files
committed
fix: compilation
Refs electron/electron@204011c
1 parent 463a85f commit 121b095

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/vs/platform/menubar/electron-main/menubar.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6-
import { app, BrowserWindow, KeyboardEvent, Menu, MenuItem, MenuItemConstructorOptions, WebContents } from 'electron';
6+
import { app, BrowserWindow, BaseWindow, KeyboardEvent, Menu, MenuItem, MenuItemConstructorOptions, WebContents } from 'electron';
77
import { WorkbenchActionExecutedClassification, WorkbenchActionExecutedEvent } from '../../../base/common/actions.js';
88
import { RunOnceScheduler } from '../../../base/common/async.js';
99
import { CancellationToken } from '../../../base/common/cancellation.js';
@@ -63,7 +63,7 @@ export class Menubar extends Disposable {
6363

6464
private keybindings: { [commandId: string]: IMenubarKeybinding };
6565

66-
private readonly fallbackMenuHandlers: { [id: string]: (menuItem: MenuItem, browserWindow: BrowserWindow | undefined, event: KeyboardEvent) => void } = Object.create(null);
66+
private readonly fallbackMenuHandlers: { [id: string]: (menuItem: MenuItem, browserWindow: BaseWindow | undefined, event: KeyboardEvent) => void } = Object.create(null);
6767

6868
constructor(
6969
@IUpdateService private readonly updateService: IUpdateService,
@@ -744,8 +744,8 @@ export class Menubar extends Disposable {
744744
return new MenuItem(this.withKeybinding(commandId, options));
745745
}
746746

747-
private makeContextAwareClickHandler(click: (menuItem: MenuItem, win: BrowserWindow, event: KeyboardEvent) => void, contextSpecificHandlers: IMenuItemClickHandler): (menuItem: MenuItem, win: BrowserWindow | undefined, event: KeyboardEvent) => void {
748-
return (menuItem: MenuItem, win: BrowserWindow | undefined, event: KeyboardEvent) => {
747+
private makeContextAwareClickHandler(click: (menuItem: MenuItem, win: BaseWindow, event: KeyboardEvent) => void, contextSpecificHandlers: IMenuItemClickHandler): (menuItem: MenuItem, win: BaseWindow | undefined, event: KeyboardEvent) => void {
748+
return (menuItem: MenuItem, win: BaseWindow | undefined, event: KeyboardEvent) => {
749749

750750
// No Active Window
751751
const activeWindow = BrowserWindow.getFocusedWindow();

0 commit comments

Comments
 (0)