Skip to content

Commit

Permalink
Rewrites accessible diff viewer (formerly called difference review)
Browse files Browse the repository at this point in the history
Fixes #186420, Adresses #184229
  • Loading branch information
hediet committed Jul 18, 2023
1 parent 40abe0e commit 38b3e89
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions foo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<!-- Copyright (C) Microsoft Corporation. All rights reserved. -->
<!DOCTYPE html>
<html>
<head>
<script>
performance.mark('code/didStartRenderer');
</script>
<meta charset="utf-8" />

<!-- Mobile tweaks -->
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-title" content="Code">
<link rel="apple-touch-icon" href="/resources/server/code-192.png" />

<!-- Disable pinch zooming -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">

<!-- Workbench Configuration -->
<meta id="vscode-workbench-web-configuration" data-settings="{&quot;remoteAuthority&quot;:&quot;localhost:8080&quot;,&quot;developmentOptions&quot;:{&quot;logLevel&quot;:3},&quot;enableWorkspaceTrust&quot;:true,&quot;productConfiguration&quot;:{&quot;embedderIdentifier&quot;:&quot;server-distro&quot;,&quot;extensionsGallery&quot;:{&quot;nlsBaseUrl&quot;:&quot;https://www.vscode-unpkg.net/_lp/&quot;,&quot;serviceUrl&quot;:&quot;https://marketplace.visualstudio.com/_apis/public/gallery&quot;,&quot;searchUrl&quot;:&quot;https://marketplace.visualstudio.com/_apis/public/gallery/searchrelevancy/extensionquery&quot;,&quot;servicePPEUrl&quot;:&quot;https://marketplace.vsallin.net/_apis/public/gallery&quot;,&quot;cacheUrl&quot;:&quot;https://vscode.blob.core.windows.net/gallery/index&quot;,&quot;itemUrl&quot;:&quot;https://marketplace.visualstudio.com/items&quot;,&quot;publisherUrl&quot;:&quot;https://marketplace.visualstudio.com/publishers&quot;,&quot;resourceUrlTemplate&quot;:&quot;https://{publisher}.vscode-unpkg.net/{publisher}/{name}/{version}/{path}&quot;,&quot;controlUrl&quot;:&quot;https://az764295.vo.msecnd.net/extensions/marketplace.json&quot;}},&quot;callbackRoute&quot;:&quot;/oss-dev/callback&quot;}">

<!-- Workbench Auth Session -->
<meta id="vscode-workbench-auth-session" data-settings="">

<!-- Builtin Extensions (running out of sources) -->
<meta id="vscode-workbench-builtin-extensions" data-settings="undefined">

<!-- Workbench Icon/Manifest/CSS -->
<link rel="icon" href="/resources/server/favicon.ico" type="image/x-icon" />
<link rel="manifest" href="/resources/server/manifest.json" crossorigin="use-credentials" />

</head>

<body aria-label="">
</body>

<!-- Startup (do not modify order of script tags!) -->
<script src="/out/vs/loader.js"></script>
<script src="/out/vs/webPackagePaths.js"></script>
<script>
const baseUrl = new URL('', window.location.origin).toString();
Object.keys(self.webPackagePaths).map(function (key, index) {
self.webPackagePaths[key] = `${baseUrl}remote/web/node_modules/${key}/${self.webPackagePaths[key]}`;
});
require.config({
baseUrl: `${baseUrl}out`,
recordStats: true,
trustedTypesPolicy: window.trustedTypes?.createPolicy('amdLoader', {
createScriptURL(value) {
if(value.startsWith(window.location.origin)) {
return value;
}
throw new Error(`Invalid script url: ${value}`)
}
}),
paths: self.webPackagePaths
});
</script>
<script>
performance.mark('code/willLoadWorkbenchMain');
</script>
<script>
require(['vs/code/browser/workbench/workbench'], function() {});
</script>
</html>

0 comments on commit 38b3e89

Please sign in to comment.