Skip to content

Commit 2a3bdb4

Browse files
John McCambridgecode-asher
authored andcommitted
Fix hash
1 parent 6b887dc commit 2a3bdb4

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

scripts/vscode.patch

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ index 780147c..2e8c9af 100644
827827
- if (platform.isMacintosh) {
828828
+ if (browser.isMacintosh) {
829829
diff --git a/src/vs/workbench/contrib/webview/electron-browser/webview-pre.js b/src/vs/workbench/contrib/webview/electron-browser/webview-pre.js
830-
index 74fc798..03728d0 100644
830+
index 74fc798..0196be0 100644
831831
--- a/src/vs/workbench/contrib/webview/electron-browser/webview-pre.js
832832
+++ b/src/vs/workbench/contrib/webview/electron-browser/webview-pre.js
833833
@@ -10 +10,19 @@
@@ -866,6 +866,16 @@ index 74fc798..03728d0 100644
866866
+ // supportFetchAPI: true,
867867
+ // corsEnabled: true
868868
+ // });
869+
@@ -310 +328 @@
870+
-
871+
+
872+
@@ -328 +346,5 @@
873+
- newFrame.contentWindow.focus();
874+
+
875+
+ // Prevent VS Code from auto-focusing markdown preview
876+
+ if (document.hasFocus()) {
877+
+ newFrame.contentWindow.focus();
878+
+ }
869879
diff --git a/src/vs/workbench/contrib/webview/electron-browser/webview.contribution.ts b/src/vs/workbench/contrib/webview/electron-browser/webview.contribution.ts
870880
index 484ff86..f3f57cb 100644
871881
--- a/src/vs/workbench/contrib/webview/electron-browser/webview.contribution.ts

0 commit comments

Comments
 (0)