Skip to content

Commit 023b53d

Browse files
committed
more wip
1 parent fe364ba commit 023b53d

File tree

2 files changed

+20
-21
lines changed

2 files changed

+20
-21
lines changed

src/browser/pages/vscode.html

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,26 @@
4141
<!-- Startup (do not modify order of script tags!) -->
4242
<script data-cfasync="false" src="{{CS_STATIC_BASE}}/out/browser/pages/vscode.browserified.js"></script>
4343
<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>
4464
<script data-cfasync="false" type="module" src="{{CS_STATIC_BASE}}/lib/vscode/out/vs/loader.js"></script>
4565
<script>
4666
performance.mark("code/willLoadWorkbenchMain")
@@ -49,7 +69,4 @@
4969
<script data-cfasync="false" src="{{CS_STATIC_BASE}}/lib/vscode/out/vs/workbench/workbench.web.api.nls.js"></script>
5070
<script data-cfasync="false" src="{{CS_STATIC_BASE}}/lib/vscode/out/vs/workbench/workbench.web.api.js"></script>
5171
END_PROD_ONLY -->
52-
<script>
53-
require(["vs/code/browser/workbench/workbench"], function () {})
54-
</script>
5572
</html>

src/browser/pages/vscode.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,6 @@ try {
3030
/* Probably fine. */
3131
}
3232

33-
;(self.require as any) = {
34-
// Without the full URL VS Code will try to load file://.
35-
baseUrl: `${window.location.origin}${options.csStaticBase}/lib/vscode/out`,
36-
recordStats: true,
37-
paths: {
38-
"vscode-textmate": `../node_modules/vscode-textmate/release/main`,
39-
"vscode-oniguruma": `../node_modules/vscode-oniguruma/release/main`,
40-
xterm: `../node_modules/xterm/lib/xterm.js`,
41-
"xterm-addon-search": `../node_modules/xterm-addon-search/lib/xterm-addon-search.js`,
42-
"xterm-addon-unicode11": `../node_modules/xterm-addon-unicode11/lib/xterm-addon-unicode11.js`,
43-
"xterm-addon-webgl": `../node_modules/xterm-addon-webgl/lib/xterm-addon-webgl.js`,
44-
"tas-client-umd": `../node_modules/tas-client-umd/lib/tas-client-umd.js`,
45-
"iconv-lite-umd": `../node_modules/iconv-lite-umd/lib/iconv-lite-umd.js`,
46-
jschardet: `../node_modules/jschardet/dist/jschardet.min.js`,
47-
},
48-
"vs/nls": nlsConfig,
49-
}
50-
5133
try {
5234
document.body.style.background = JSON.parse(localStorage.getItem("colorThemeData")!).colorMap["editor.background"]
5335
} catch (error) {

0 commit comments

Comments
 (0)