File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -785,7 +785,7 @@ index 780147c..2e8c9af 100644
785
785
- if (platform.isMacintosh) {
786
786
+ if (browser.isMacintosh) {
787
787
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
789
789
--- a/src/vs/workbench/contrib/webview/electron-browser/webview-pre.js
790
790
+++ b/src/vs/workbench/contrib/webview/electron-browser/webview-pre.js
791
791
@@ -10 +10,19 @@
@@ -827,9 +827,10 @@ index 74fc798..f54b539 100644
827
827
@@ -310 +328 @@
828
828
-
829
829
+
830
- @@ -328 +346,4 @@
830
+ @@ -328 +346,5 @@
831
831
- 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
833
834
+ if (document.hasFocus()) {
834
835
+ newFrame.contentWindow.focus();
835
836
+ }
You can’t perform that action at this time.
0 commit comments