Skip to content

Commit 0958e0c

Browse files
committed
Fix double title bar and missing preferences on Mac
1 parent 3494a8f commit 0958e0c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

scripts/vscode.patch

+8-2
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ index a215bde..df7562b 100644
452452
@@ -44,0 +45 @@
453453
+.web > .monaco-workbench .part.titlebar,
454454
diff --git a/src/vs/workbench/browser/parts/titlebar/menubarControl.ts b/src/vs/workbench/browser/parts/titlebar/menubarControl.ts
455-
index a822341..642bc70 100644
455+
index a822341..43b882a 100644
456456
--- a/src/vs/workbench/browser/parts/titlebar/menubarControl.ts
457457
+++ b/src/vs/workbench/browser/parts/titlebar/menubarControl.ts
458458
@@ -16 +16,2 @@ import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding';
@@ -465,6 +465,9 @@ index a822341..642bc70 100644
465465
@@ -126 +127 @@ export class MenubarControl extends Disposable {
466466
- if (isMacintosh || this.currentTitlebarStyleSetting !== 'custom') {
467467
+ if ((isNative && isMacintosh) || this.currentTitlebarStyleSetting !== 'custom') {
468+
@@ -138 +139 @@ export class MenubarControl extends Disposable {
469+
- if (isMacintosh || this.currentTitlebarStyleSetting !== 'custom') {
470+
+ if ((isNative && isMacintosh) || this.currentTitlebarStyleSetting !== 'custom') {
468471
@@ -288 +289 @@ export class MenubarControl extends Disposable {
469472
- if (!isMacintosh && this.currentTitlebarStyleSetting === 'custom') {
470473
+ if (!(isNative && isMacintosh) && this.currentTitlebarStyleSetting === 'custom') {
@@ -841,13 +844,16 @@ index 48ef482..dc47f81 100644
841844
- placeHolder: isMacintosh ? nls.localize('openRecentPlaceHolderMac', "Select to open (hold Cmd-key to open in new window)") : nls.localize('openRecentPlaceHolder', "Select to open (hold Ctrl-key to open in new window)"),
842845
+ placeHolder: browser.isMacintosh ? nls.localize('openRecentPlaceHolderMac', "Select to open (hold Cmd-key to open in new window)") : nls.localize('openRecentPlaceHolder', "Select to open (hold Ctrl-key to open in new window)"),
843846
diff --git a/src/vs/workbench/electron-browser/main.contribution.ts b/src/vs/workbench/electron-browser/main.contribution.ts
844-
index 71bc992..9562b11 100644
847+
index 71bc992..59a1a20 100644
845848
--- a/src/vs/workbench/electron-browser/main.contribution.ts
846849
+++ b/src/vs/workbench/electron-browser/main.contribution.ts
847850
@@ -13 +13,2 @@ import { KeyMod, KeyChord, KeyCode } from 'vs/base/common/keyCodes';
848851
-import { isWindows, isLinux, isMacintosh } from 'vs/base/common/platform';
849852
+import { isNative, isWeb } from 'vs/base/common/platform';
850853
+import { isMacintosh, isWindows, isLinux } from 'vs/base/browser/browser';
854+
@@ -306 +307 @@ import { LogStorageAction } from 'vs/platform/storage/node/storageService';
855+
- when: IsMacContext.toNegated()
856+
+ // when: IsMacContext.toNegated()
851857
@@ -538 +539 @@ import { LogStorageAction } from 'vs/platform/storage/node/storageService';
852858
- isMacintosh ?
853859
+ isNative && isMacintosh ?

0 commit comments

Comments
 (0)