From 714257b3c59970c10916bd4b2d587953bcc92b82 Mon Sep 17 00:00:00 2001 From: bbbboom Date: Sat, 16 Jul 2022 02:00:05 +0800 Subject: [PATCH] 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 --- 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 c3de5a83f..a0431baaf 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