Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2104261

Browse files
committedOct 17, 2024··
Patch new HTML files
Fixes the icons and fetching modules from the browser when behind a reverse proxy.
1 parent 41db568 commit 2104261

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
 

‎patches/base-path.diff

+35
Original file line numberDiff line numberDiff line change
@@ -319,3 +319,38 @@ Index: code-server/lib/vscode/src/vs/platform/extensionResourceLoader/common/ext
319319
}
320320
return undefined;
321321
}
322+
Index: code-server/lib/vscode/src/vs/code/browser/workbench/workbench-dev.esm.html
323+
===================================================================
324+
--- code-server.orig/lib/vscode/src/vs/code/browser/workbench/workbench-dev.esm.html
325+
+++ code-server/lib/vscode/src/vs/code/browser/workbench/workbench-dev.esm.html
326+
@@ -11,7 +11,8 @@
327+
<meta name="mobile-web-app-capable" content="yes" />
328+
<meta name="apple-mobile-web-app-capable" content="yes" />
329+
<meta name="apple-mobile-web-app-title" content="Code">
330+
- <link rel="apple-touch-icon" href="{{WORKBENCH_WEB_BASE_URL}}/resources/server/code-192.png" />
331+
+ <link rel="apple-touch-icon" sizes="192x192" href="{{BASE}}/_static/src/browser/media/pwa-icon-192.png" />
332+
+ <link rel="apple-touch-icon" sizes="512x512" href="{{BASE}}/_static/src/browser/media/pwa-icon-512.png" />
333+
334+
<!-- Disable pinch zooming -->
335+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
336+
@@ -26,8 +27,9 @@
337+
<meta id="vscode-workbench-builtin-extensions" data-settings="{{WORKBENCH_BUILTIN_EXTENSIONS}}">
338+
339+
<!-- Workbench Icon/Manifest/CSS -->
340+
- <link rel="icon" href="{{WORKBENCH_WEB_BASE_URL}}/resources/server/favicon.ico" type="image/x-icon" />
341+
- <link rel="manifest" href="{{WORKBENCH_WEB_BASE_URL}}/resources/server/manifest.json" crossorigin="use-credentials" />
342+
+ <link rel="icon" href="{{BASE}}/_static/src/browser/media/favicon-dark-support.svg" />
343+
+ <link rel="alternate icon" href="{{BASE}}/_static/src/browser/media/favicon.ico" type="image/x-icon" />
344+
+ <link rel="manifest" href="{{VS_BASE}}/manifest.json" crossorigin="use-credentials" />
345+
<style id="vscode-css-modules" type="text/css" media="screen"></style>
346+
347+
</head>
348+
@@ -37,7 +39,7 @@
349+
350+
<!-- Startup (do not modify order of script tags!) -->
351+
<script>
352+
- const baseUrl = new URL('{{WORKBENCH_WEB_BASE_URL}}', window.location.origin).toString();
353+
+ const baseUrl = new URL('{{WORKBENCH_WEB_BASE_URL}}', window.location).toString();
354+
globalThis._VSCODE_FILE_ROOT = baseUrl + '/out/';
355+
</script>
356+
<script>

0 commit comments

Comments
 (0)
Please sign in to comment.