From 947d086b2bf3f334913e0e9513d47961e447f2cb Mon Sep 17 00:00:00 2001 From: bbbboom Date: Sat, 2 Jul 2022 12:13:20 +0800 Subject: [PATCH] Update display-language.diff "vscode-remote-resource" not under "{{WORKBENCH_WEB_BASE_URL}}", It needs to access the upper level path. --- patches/display-language.diff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/display-language.diff b/patches/display-language.diff index c3de5a83ff88..a0431baaf405 100644 --- a/patches/display-language.diff +++ b/patches/display-language.diff @@ -91,7 +91,7 @@ Index: code-server/lib/vscode/src/vs/code/browser/workbench/workbench.html + return cb(undefined, result) + } + 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((json) => { + bundles[bundle] = json