Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Commit

Permalink
Fix microsoft/vscode#62354 - map remote path as non-file-uri
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Nov 1, 2018
1 parent 911f5c7 commit b2f81cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/transformers/remotePathTransformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b2f81cd

Please sign in to comment.