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

Add /vscode to nls fetch

A plugin may modify the root endpoint which will make /resource no
longer work so always use /vscode/resource instead.
上级 938b4606
......@@ -17,7 +17,7 @@ try {
}
// FIXME: Only works if path separators are /.
const path = nlsConfig._resolvedLanguagePackCoreLocation + "/" + bundle.replace(/\//g, "!") + ".nls.json"
fetch(`${options.base}/resource/?path=${encodeURIComponent(path)}`)
fetch(`${options.base}/vscode/resource/?path=${encodeURIComponent(path)}`)
.then((response) => response.json())
.then((json) => {
bundles[bundle] = json
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册