We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7155ad8 commit acf39c5Copy full SHA for acf39c5
src/browser/pages/vscode.html
@@ -64,10 +64,18 @@
64
} catch (error) {
65
/* Probably fine. */
66
}
67
- console.log("hello joe")
+ const resolveBase = (base) => {
68
+ // After resolving the base will either start with / or be an empty string.
69
+ if (!base || base.startsWith("/")) {
70
+ return base ?? ""
71
+ }
72
73
+
74
+ const base = resolveBase("{{CS_STATIC_BASE}}")
75
76
self.require = {
77
// Without the full URL VS Code will try to load file://.
- baseUrl: `${window.location.origin}{{CS_STATIC_BASE}}/lib/vscode/out`,
78
+ baseUrl: `${window.location.origin}${base}/lib/vscode/out`,
79
recordStats: true,
80
paths: {
81
"vscode-textmate": `../node_modules/vscode-textmate/release/main`,
0 commit comments