From 04542c99fd57eab6c3def47a5c2170ee871e6d06 Mon Sep 17 00:00:00 2001 From: Asher Date: Thu, 5 Mar 2020 10:38:13 -0600 Subject: [PATCH] Resolve passed-in directory Makes relative paths work correctly. --- src/node/app/vscode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/app/vscode.ts b/src/node/app/vscode.ts index f191faf60..e850c7cb4 100644 --- a/src/node/app/vscode.ts +++ b/src/node/app/vscode.ts @@ -177,7 +177,7 @@ export class VscodeHttpProvider extends HttpProvider { [ { url: route.query.workspace, workspace: true }, { url: route.query.folder, workspace: false }, - this.args._ && this.args._.length > 0 ? { url: this.args._[this.args._.length - 1] } : undefined, + this.args._ && this.args._.length > 0 ? { url: path.resolve(this.args._[this.args._.length - 1]) } : undefined, lastVisited, ], remoteAuthority,