|
41 | 41 | <!-- Startup (do not modify order of script tags!) -->
|
42 | 42 | <script data-cfasync="false" src="{{CS_STATIC_BASE}}/out/browser/pages/vscode.browserified.js"></script>
|
43 | 43 | <script data-cfasync="false" type="module" src="{{CS_STATIC_BASE}}/out/browser/register.browserified.js"></script>
|
| 44 | + <script> |
| 45 | + self.require = { |
| 46 | + // Without the full URL VS Code will try to load file://. |
| 47 | + baseUrl: `${window.location.origin}{{CS_STATIC_BASE}}/lib/vscode/out`, |
| 48 | + recordStats: true, |
| 49 | + paths: { |
| 50 | + "vscode-textmate": `../node_modules/vscode-textmate/release/main`, |
| 51 | + "vscode-oniguruma": `../node_modules/vscode-oniguruma/release/main`, |
| 52 | + xterm: `../node_modules/xterm/lib/xterm.js`, |
| 53 | + "xterm-addon-search": `../node_modules/xterm-addon-search/lib/xterm-addon-search.js`, |
| 54 | + "xterm-addon-unicode11": `../node_modules/xterm-addon-unicode11/lib/xterm-addon-unicode11.js`, |
| 55 | + "xterm-addon-webgl": `../node_modules/xterm-addon-webgl/lib/xterm-addon-webgl.js`, |
| 56 | + "tas-client-umd": `../node_modules/tas-client-umd/lib/tas-client-umd.js`, |
| 57 | + "iconv-lite-umd": `../node_modules/iconv-lite-umd/lib/iconv-lite-umd.js`, |
| 58 | + jschardet: `../node_modules/jschardet/dist/jschardet.min.js`, |
| 59 | + }, |
| 60 | + // "vs/nls": nlsConfig, |
| 61 | + } |
| 62 | + require(["vs/code/browser/workbench/workbench"], function () {}) |
| 63 | + </script> |
44 | 64 | <script data-cfasync="false" type="module" src="{{CS_STATIC_BASE}}/lib/vscode/out/vs/loader.js"></script>
|
45 | 65 | <script>
|
46 | 66 | performance.mark("code/willLoadWorkbenchMain")
|
|
49 | 69 | <script data-cfasync="false" src="{{CS_STATIC_BASE}}/lib/vscode/out/vs/workbench/workbench.web.api.nls.js"></script>
|
50 | 70 | <script data-cfasync="false" src="{{CS_STATIC_BASE}}/lib/vscode/out/vs/workbench/workbench.web.api.js"></script>
|
51 | 71 | END_PROD_ONLY -->
|
52 |
| - <script> |
53 |
| - require(["vs/code/browser/workbench/workbench"], function () {}) |
54 |
| - </script> |
55 | 72 | </html>
|
0 commit comments