From 33b3523bf4724c949bf79f74fa991d0e78df1707 Mon Sep 17 00:00:00 2001 From: Asher Date: Fri, 21 Feb 2020 12:45:31 -0600 Subject: [PATCH] Prefer command-line directory to last visited directory If you want to use the last visited directory you should omit the directory from the command line. Fixes #1132. --- 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 1bf52515..e47aca4a 100644 --- a/src/node/app/vscode.ts +++ b/src/node/app/vscode.ts @@ -177,8 +177,8 @@ export class VscodeHttpProvider extends HttpProvider { [ { url: route.query.workspace, workspace: true }, { url: route.query.folder, workspace: false }, - lastVisited, this.args._ && this.args._.length > 0 ? { url: this.args._[this.args._.length - 1] } : undefined, + lastVisited, ], remoteAuthority, )