Archived
1
0

Use last positional argument as working directory

Instead of the first.
This commit is contained in:
Asher
2020-02-20 18:44:03 -06:00
parent 319cd3f7ab
commit e44ac0a30e
2 changed files with 10 additions and 1 deletions

View File

@ -178,7 +178,7 @@ 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._[0] } : undefined,
this.args._ && this.args._.length > 0 ? { url: this.args._[this.args._.length - 1] } : undefined,
],
remoteAuthority,
)