Archived
1
0

Fix paths from Windows client to non-Windows server

Fixes #1659
Fixes #1642
This commit is contained in:
Asher
2020-05-18 12:57:50 -05:00
parent 0c2381f4ff
commit f7f11ad6c2
4 changed files with 57 additions and 9 deletions

View File

@ -18,6 +18,7 @@ import { generateUuid } from "../../common/util"
import { Args } from "../cli"
import { HttpProvider, HttpProviderOptions, HttpResponse, Route } from "../http"
import { settings } from "../settings"
import { pathToFsPath } from "../util"
export class VscodeHttpProvider extends HttpProvider {
private readonly serverRootPath: string
@ -151,7 +152,7 @@ export class VscodeHttpProvider extends HttpProvider {
case "/resource":
case "/vscode-remote-resource":
if (typeof route.query.path === "string") {
return this.getResource(route.query.path)
return this.getResource(pathToFsPath(route.query.path))
}
break
case "/webview":