Skip to content

Commit 61a2a1c

Browse files
John McCambridgenol166
John McCambridge
authored andcommitted
Fix hash
1 parent 0cd4e46 commit 61a2a1c

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

scripts/vscode.patch

+11-1
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..03728d0 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 @@
@@ -824,6 +824,16 @@ index 74fc798..03728d0 100644
824824
+ // supportFetchAPI: true,
825825
+ // corsEnabled: true
826826
+ // });
827+
@@ -310 +328 @@
828+
-
829+
+
830+
@@ -328 +346,5 @@
831+
- newFrame.contentWindow.focus();
832+
+
833+
+ // Prevent VS Code from auto-focusing markdown preview
834+
+ if (document.hasFocus()) {
835+
+ newFrame.contentWindow.focus();
836+
+ }
827837
diff --git a/src/vs/workbench/contrib/webview/electron-browser/webview.contribution.ts b/src/vs/workbench/contrib/webview/electron-browser/webview.contribution.ts
828838
index 484ff86..f3f57cb 100644
829839
--- a/src/vs/workbench/contrib/webview/electron-browser/webview.contribution.ts

0 commit comments

Comments
 (0)