Skip to content

Commit 714257b

Browse files
bbbboomcode-asher
andauthored
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 <[email protected]>
1 parent 97af08b commit 714257b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

patches/display-language.diff

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Index: code-server/lib/vscode/src/vs/code/browser/workbench/workbench.html
9191
+ return cb(undefined, result)
9292
+ }
9393
+ const path = nlsConfig['vs/nls']._resolvedLanguagePackCoreLocation + "/" + bundle.replace(/\//g, "!") + ".nls.json"
94-
+ fetch(`{{WORKBENCH_WEB_BASE_URL}}/vscode-remote-resource?path=${encodeURIComponent(path)}`)
94+
+ fetch(`{{WORKBENCH_WEB_BASE_URL}}/../vscode-remote-resource?path=${encodeURIComponent(path)}`)
9595
+ .then((response) => response.json())
9696
+ .then((json) => {
9797
+ bundles[bundle] = json

0 commit comments

Comments
 (0)