From 2a3bdb4c859fd59be7cc446e95a4c8616895cd0b Mon Sep 17 00:00:00 2001 From: John McCambridge Date: Mon, 22 Apr 2019 11:28:50 -0500 Subject: [PATCH 1/2] Fix hash --- scripts/vscode.patch | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/vscode.patch b/scripts/vscode.patch index 967c3d14e939..26e82630f653 100644 --- a/scripts/vscode.patch +++ b/scripts/vscode.patch @@ -827,7 +827,7 @@ index 780147c..2e8c9af 100644 - if (platform.isMacintosh) { + if (browser.isMacintosh) { diff --git a/src/vs/workbench/contrib/webview/electron-browser/webview-pre.js b/src/vs/workbench/contrib/webview/electron-browser/webview-pre.js -index 74fc798..03728d0 100644 +index 74fc798..0196be0 100644 --- a/src/vs/workbench/contrib/webview/electron-browser/webview-pre.js +++ b/src/vs/workbench/contrib/webview/electron-browser/webview-pre.js @@ -10 +10,19 @@ @@ -866,6 +866,16 @@ index 74fc798..03728d0 100644 + // supportFetchAPI: true, + // corsEnabled: true + // }); +@@ -310 +328 @@ +- ++ +@@ -328 +346,5 @@ +- newFrame.contentWindow.focus(); ++ ++ // Prevent VS Code from auto-focusing markdown preview ++ if (document.hasFocus()) { ++ newFrame.contentWindow.focus(); ++ } diff --git a/src/vs/workbench/contrib/webview/electron-browser/webview.contribution.ts b/src/vs/workbench/contrib/webview/electron-browser/webview.contribution.ts index 484ff86..f3f57cb 100644 --- a/src/vs/workbench/contrib/webview/electron-browser/webview.contribution.ts From 6f5e11b4decb42c5006a93101142896fa00ca0ec Mon Sep 17 00:00:00 2001 From: Asher Date: Tue, 23 Apr 2019 19:11:03 -0500 Subject: [PATCH 2/2] Remove whitespace --- scripts/vscode.patch | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/scripts/vscode.patch b/scripts/vscode.patch index 26e82630f653..8e89e69e2af4 100644 --- a/scripts/vscode.patch +++ b/scripts/vscode.patch @@ -827,7 +827,7 @@ index 780147c..2e8c9af 100644 - if (platform.isMacintosh) { + if (browser.isMacintosh) { diff --git a/src/vs/workbench/contrib/webview/electron-browser/webview-pre.js b/src/vs/workbench/contrib/webview/electron-browser/webview-pre.js -index 74fc798..0196be0 100644 +index 74fc798..0b6b5eb 100644 --- a/src/vs/workbench/contrib/webview/electron-browser/webview-pre.js +++ b/src/vs/workbench/contrib/webview/electron-browser/webview-pre.js @@ -10 +10,19 @@ @@ -866,13 +866,8 @@ index 74fc798..0196be0 100644 + // supportFetchAPI: true, + // corsEnabled: true + // }); -@@ -310 +328 @@ -- -+ -@@ -328 +346,5 @@ +@@ -328 +346,3 @@ - newFrame.contentWindow.focus(); -+ -+ // Prevent VS Code from auto-focusing markdown preview + if (document.hasFocus()) { + newFrame.contentWindow.focus(); + } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy