From b2f81cdd368d035a0eeb3ddc2ac0dc990d67e979 Mon Sep 17 00:00:00 2001 From: Rob Lourens Date: Wed, 31 Oct 2018 20:05:28 -0700 Subject: [PATCH] Fix Microsoft/vscode#62354 - map remote path as non-file-uri --- src/transformers/remotePathTransformer.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/transformers/remotePathTransformer.ts b/src/transformers/remotePathTransformer.ts index cebcf57ba..98123caa1 100644 --- a/src/transformers/remotePathTransformer.ts +++ b/src/transformers/remotePathTransformer.ts @@ -94,6 +94,9 @@ export class RemotePathTransformer extends UrlPathTransformer { public getClientPathFromTargetPath(remotePath: string): string { remotePath = super.getClientPathFromTargetPath(remotePath) || remotePath; + + // Map as non-file-uri because remoteRoot won't expect a file uri + remotePath = utils.fileUrlToPath(remotePath); if (!this.shouldMapPaths(remotePath)) return ''; const relPath = relative(this._remoteRoot, remotePath);