Skip to content

Commit 30d05ae

Browse files
committed
Update require base URL for VS Code loader
It needs to have the scheme otherwise when resolving these modules the loader will default to the file scheme and fail to fetch.
1 parent 07580e1 commit 30d05ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/browser/pages/vscode.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ try {
3131
}
3232

3333
;(self.require as any) = {
34-
baseUrl: `${options.csStaticBase}/lib/vscode/out`,
34+
// Without the full URL VS Code will try to load file://.
35+
baseUrl: `${window.location.origin}${options.csStaticBase}/lib/vscode/out`,
3536
recordStats: true,
3637
paths: {
3738
"vscode-textmate": `../node_modules/vscode-textmate/release/main`,

0 commit comments

Comments
 (0)