Skip to content

Commit 30d8ac7

Browse files
author
John McCambridge
committed
correct patch
1 parent 2dcfc05 commit 30d8ac7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/vscode.patch

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ index 780147c..2e8c9af 100644
785785
- if (platform.isMacintosh) {
786786
+ if (browser.isMacintosh) {
787787
diff --git a/src/vs/workbench/contrib/webview/electron-browser/webview-pre.js b/src/vs/workbench/contrib/webview/electron-browser/webview-pre.js
788-
index 74fc798..f54b539 100644
788+
index 74fc798..0196be0 100644
789789
--- a/src/vs/workbench/contrib/webview/electron-browser/webview-pre.js
790790
+++ b/src/vs/workbench/contrib/webview/electron-browser/webview-pre.js
791791
@@ -10 +10,19 @@
@@ -827,9 +827,10 @@ index 74fc798..f54b539 100644
827827
@@ -310 +328 @@
828828
-
829829
+
830-
@@ -328 +346,4 @@
830+
@@ -328 +346,5 @@
831831
- newFrame.contentWindow.focus();
832-
+ /* Comment out to avoid VS Code from focusing on markdown preview on reload */
832+
+
833+
+ // Prevent VS Code from auto-focusing markdown preview
833834
+ if (document.hasFocus()) {
834835
+ newFrame.contentWindow.focus();
835836
+ }

0 commit comments

Comments
 (0)