From ffe6a663aa1c3e634e97cd200d1a7a6abab500bf Mon Sep 17 00:00:00 2001 From: Asher Date: Wed, 9 Sep 2020 12:05:44 -0500 Subject: [PATCH] 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. --- src/browser/pages/vscode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser/pages/vscode.ts b/src/browser/pages/vscode.ts index 5810c253a..3ca1db83e 100644 --- a/src/browser/pages/vscode.ts +++ b/src/browser/pages/vscode.ts @@ -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