mirror of https://github.com/coder/code-server.git
Update display-language.diff (#5317)
"vscode-remote-resource" not under "{{WORKBENCH_WEB_BASE_URL}}", It needs to access the upper level path. Co-authored-by: Asher <ash@coder.com>
This commit is contained in:
parent
97af08b9e5
commit
714257b3c5
|
@ -91,7 +91,7 @@ Index: code-server/lib/vscode/src/vs/code/browser/workbench/workbench.html
|
||||||
+ return cb(undefined, result)
|
+ return cb(undefined, result)
|
||||||
+ }
|
+ }
|
||||||
+ const path = nlsConfig['vs/nls']._resolvedLanguagePackCoreLocation + "/" + bundle.replace(/\//g, "!") + ".nls.json"
|
+ const path = nlsConfig['vs/nls']._resolvedLanguagePackCoreLocation + "/" + bundle.replace(/\//g, "!") + ".nls.json"
|
||||||
+ fetch(`{{WORKBENCH_WEB_BASE_URL}}/vscode-remote-resource?path=${encodeURIComponent(path)}`)
|
+ fetch(`{{WORKBENCH_WEB_BASE_URL}}/../vscode-remote-resource?path=${encodeURIComponent(path)}`)
|
||||||
+ .then((response) => response.json())
|
+ .then((response) => response.json())
|
||||||
+ .then((json) => {
|
+ .then((json) => {
|
||||||
+ bundles[bundle] = json
|
+ bundles[bundle] = json
|
||||||
|
|
Loading…
Reference in New Issue