Fix worker require paths when behind proxy
This commit is contained in:
@ -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"))
|
||||
|
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user