Archived
1
0

Fix worker require paths when behind proxy

This commit is contained in:
Asher
2020-03-02 17:44:16 -06:00
parent ecac0dd751
commit 77af2a5b0e
3 changed files with 5 additions and 6 deletions

View File

@ -54,7 +54,7 @@
const url = new URL(window.location.origin + "/" + parts.join("/"))
const el = document.getElementById("vscode-remote-commit")
const commit = el ? el.getAttribute("data-settings") : ""
const staticBase = url.href + "/static/" + commit + "/lib/vscode"
const staticBase = url.href.replace(/\/+$/, "") + "/static/" + commit + "/lib/vscode"
let nlsConfig
try {
nlsConfig = JSON.parse(document.getElementById("vscode-remote-nls-configuration").getAttribute("data-settings"))

View File

@ -23,8 +23,7 @@ export class StaticHttpProvider extends HttpProvider {
const split = route.requestPath.split("/").slice(1)
switch (split[split.length - 1]) {
case "manifest.json":
case "extensionHostWorkerMain.js": {
case "manifest.json": {
const response = await this.getUtf8Resource(this.rootPath, ...split)
return this.replaceTemplates(route, response)
}