|
43 | 43 | <body aria-label=""></body> |
44 | 44 |
|
45 | 45 | <!-- Startup (do not modify order of script tags!) --> |
46 | | - <script> |
47 | | - let nlsConfig |
48 | | - try { |
49 | | - nlsConfig = JSON.parse(document.getElementById("vscode-remote-nls-configuration").getAttribute("data-settings")) |
50 | | - if (nlsConfig._resolvedLanguagePackCoreLocation) { |
51 | | - const bundles = Object.create(null) |
52 | | - nlsConfig.loadBundle = (bundle, language, cb) => { |
53 | | - let result = bundles[bundle] |
54 | | - if (result) { |
55 | | - return cb(undefined, result) |
56 | | - } |
57 | | - // FIXME: Only works if path separators are /. |
58 | | - const path = nlsConfig._resolvedLanguagePackCoreLocation + "/" + bundle.replace(/\//g, "!") + ".nls.json" |
59 | | - fetch(`{{BASE}}/resource/?path=${encodeURIComponent(path)}`) |
60 | | - .then((response) => response.json()) |
61 | | - .then((json) => { |
62 | | - bundles[bundle] = json |
63 | | - cb(undefined, json) |
64 | | - }) |
65 | | - .catch(cb) |
66 | | - } |
67 | | - } |
68 | | - } catch (error) { |
69 | | - /* Probably fine. */ |
70 | | - } |
71 | | - self.require = { |
72 | | - baseUrl: "{{CS_STATIC_BASE}}/lib/vscode/out", |
73 | | - paths: { |
74 | | - "vscode-textmate": `../node_modules/vscode-textmate/release/main`, |
75 | | - "vscode-oniguruma": `../node_modules/vscode-oniguruma/release/main`, |
76 | | - xterm: `../node_modules/xterm/lib/xterm.js`, |
77 | | - "xterm-addon-search": `../node_modules/xterm-addon-search/lib/xterm-addon-search.js`, |
78 | | - "xterm-addon-unicode11": `../node_modules/xterm-addon-unicode11/lib/xterm-addon-unicode11.js`, |
79 | | - "xterm-addon-webgl": `../node_modules/xterm-addon-webgl/lib/xterm-addon-webgl.js`, |
80 | | - "semver-umd": `../node_modules/semver-umd/lib/semver-umd.js`, |
81 | | - "iconv-lite-umd": `../node_modules/iconv-lite-umd/lib/iconv-lite-umd.js`, |
82 | | - jschardet: `../node_modules/jschardet/dist/jschardet.min.js`, |
83 | | - }, |
84 | | - "vs/nls": nlsConfig, |
85 | | - } |
86 | | - </script> |
| 46 | + <script data-cfasync="false" src="{{CS_STATIC_BASE}}/dist/pages/vscode.js"></script> |
87 | 47 | <script data-cfasync="false" src="{{CS_STATIC_BASE}}/dist/register.js"></script> |
88 | 48 | <script data-cfasync="false" src="{{CS_STATIC_BASE}}/lib/vscode/out/vs/loader.js"></script> |
89 | 49 | <!-- PROD_ONLY |
|
93 | 53 | <script> |
94 | 54 | require(["vs/code/browser/workbench/workbench"], function () {}) |
95 | 55 | </script> |
96 | | - <script> |
97 | | - try { |
98 | | - document.body.style.background = JSON.parse(localStorage.getItem("colorThemeData")).colorMap["editor.background"] |
99 | | - } catch (error) { |
100 | | - // Oh well. |
101 | | - } |
102 | | - </script> |
103 | 56 | </html> |
0 commit comments