Archived
1
0

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.
This commit is contained in:
Asher
2020-10-12 15:42:46 -05:00
parent 07580e1fcb
commit 30d05aeb4b

View File

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