未验证 提交 30d05aeb 编写于 作者: A Asher

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.
上级 07580e1f
......@@ -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`,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册