File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 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
785785- if (platform.isMacintosh) {
786786+ if (browser.isMacintosh) {
787787diff --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+ }
You can’t perform that action at this time.
0 commit comments