mirror of
https://github.com/coder/code-server.git
synced 2026-05-10 14:27:26 +02:00
chore(vscode): update to 1.54.2
This commit is contained in:
@@ -67,7 +67,7 @@ export class Menubar {
|
||||
@IUpdateService private readonly updateService: IUpdateService,
|
||||
@IConfigurationService private readonly configurationService: IConfigurationService,
|
||||
@IWindowsMainService private readonly windowsMainService: IWindowsMainService,
|
||||
@IEnvironmentMainService private readonly environmentService: IEnvironmentMainService,
|
||||
@IEnvironmentMainService private readonly environmentMainService: IEnvironmentMainService,
|
||||
@ITelemetryService private readonly telemetryService: ITelemetryService,
|
||||
@IWorkspacesHistoryMainService private readonly workspacesHistoryMainService: IWorkspacesHistoryMainService,
|
||||
@IStateService private readonly stateService: IStateService,
|
||||
@@ -168,9 +168,9 @@ export class Menubar {
|
||||
this.lifecycleMainService.onWillShutdown(() => this.willShutdown = true);
|
||||
|
||||
// // Listen to some events from window service to update menu
|
||||
this.windowsMainService.onWindowsCountChanged(e => this.onWindowsCountChanged(e));
|
||||
this.nativeHostMainService.onDidBlurWindow(() => this.onWindowFocusChange());
|
||||
this.nativeHostMainService.onDidFocusWindow(() => this.onWindowFocusChange());
|
||||
this.windowsMainService.onDidChangeWindowsCount(e => this.onDidChangeWindowsCount(e));
|
||||
this.nativeHostMainService.onDidBlurWindow(() => this.onDidChangeWindowFocus());
|
||||
this.nativeHostMainService.onDidFocusWindow(() => this.onDidChangeWindowFocus());
|
||||
}
|
||||
|
||||
private get currentEnableMenuBarMnemonics(): boolean {
|
||||
@@ -225,7 +225,7 @@ export class Menubar {
|
||||
}
|
||||
}
|
||||
|
||||
private onWindowsCountChanged(e: IWindowsCountChangedEvent): void {
|
||||
private onDidChangeWindowsCount(e: IWindowsCountChangedEvent): void {
|
||||
if (!isMacintosh) {
|
||||
return;
|
||||
}
|
||||
@@ -237,7 +237,7 @@ export class Menubar {
|
||||
}
|
||||
}
|
||||
|
||||
private onWindowFocusChange(): void {
|
||||
private onDidChangeWindowFocus(): void {
|
||||
if (!isMacintosh) {
|
||||
return;
|
||||
}
|
||||
@@ -499,7 +499,7 @@ export class Menubar {
|
||||
const openInNewWindow = this.isOptionClick(event);
|
||||
const success = this.windowsMainService.open({
|
||||
context: OpenContext.MENU,
|
||||
cli: this.environmentService.args,
|
||||
cli: this.environmentMainService.args,
|
||||
urisToOpen: [openable],
|
||||
forceNewWindow: openInNewWindow,
|
||||
gotoLineMode: false
|
||||
@@ -716,7 +716,7 @@ export class Menubar {
|
||||
if (activeWindow) {
|
||||
this.logService.trace('menubar#runActionInRenderer', invocation);
|
||||
|
||||
if (isMacintosh && !this.environmentService.isBuilt && !activeWindow.isReady) {
|
||||
if (isMacintosh && !this.environmentMainService.isBuilt && !activeWindow.isReady) {
|
||||
if ((invocation.type === 'commandId' && invocation.commandId === 'workbench.action.toggleDevTools') || (invocation.type !== 'commandId' && invocation.userSettingsLabel === 'alt+cmd+i')) {
|
||||
// prevent this action from running twice on macOS (https://github.com/microsoft/vscode/issues/62719)
|
||||
// we already register a keybinding in bootstrap-window.js for opening developer tools in case something
|
||||
|
||||
Reference in New Issue
Block a user