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:
@ -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`,
|
||||
|
Reference in New Issue
Block a user