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
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A
1 changed files with 2 additions and 1 deletions

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`,