mirror of
https://github.com/coder/code-server.git
synced 2026-05-10 06:17:27 +02:00
Update to VS Code 1.52.1
This commit is contained in:
@@ -24,6 +24,7 @@ import { IStateService } from 'vs/platform/state/node/state';
|
||||
import { ILifecycleMainService } from 'vs/platform/lifecycle/electron-main/lifecycleMainService';
|
||||
import { WorkbenchActionExecutedEvent, WorkbenchActionExecutedClassification } from 'vs/base/common/actions';
|
||||
import { INativeHostMainService } from 'vs/platform/native/electron-main/nativeHostMainService';
|
||||
import { CancellationToken } from 'vs/base/common/cancellation';
|
||||
|
||||
const telemetryFrom = 'menu';
|
||||
|
||||
@@ -82,7 +83,7 @@ export class Menubar {
|
||||
this.menubarMenus = Object.create(null);
|
||||
this.keybindings = Object.create(null);
|
||||
|
||||
if (isMacintosh || getTitleBarStyle(this.configurationService, this.environmentService) === 'native') {
|
||||
if (isMacintosh || getTitleBarStyle(this.configurationService) === 'native') {
|
||||
this.restoreCachedMenubarData();
|
||||
}
|
||||
|
||||
@@ -416,7 +417,7 @@ export class Menubar {
|
||||
|
||||
private shouldDrawMenu(menuId: string): boolean {
|
||||
// We need to draw an empty menu to override the electron default
|
||||
if (!isMacintosh && getTitleBarStyle(this.configurationService, this.environmentService) === 'custom') {
|
||||
if (!isMacintosh && getTitleBarStyle(this.configurationService) === 'custom') {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -754,10 +755,10 @@ export class Menubar {
|
||||
|
||||
if (invocation.type === 'commandId') {
|
||||
const runActionPayload: INativeRunActionInWindowRequest = { id: invocation.commandId, from: 'menu' };
|
||||
activeWindow.sendWhenReady('vscode:runAction', runActionPayload);
|
||||
activeWindow.sendWhenReady('vscode:runAction', CancellationToken.None, runActionPayload);
|
||||
} else {
|
||||
const runKeybindingPayload: INativeRunKeybindingInWindowRequest = { userSettingsLabel: invocation.userSettingsLabel };
|
||||
activeWindow.sendWhenReady('vscode:runKeybinding', runKeybindingPayload);
|
||||
activeWindow.sendWhenReady('vscode:runKeybinding', CancellationToken.None, runKeybindingPayload);
|
||||
}
|
||||
} else {
|
||||
this.logService.trace('menubar#runActionInRenderer: no active window found', invocation);
|
||||
|
||||
Reference in New Issue
Block a user