Archived
1
0

Resolve passed-in directory

Makes relative paths work correctly.
This commit is contained in:
Asher 2020-03-05 10:38:13 -06:00
parent 8c47ba255a
commit 04542c99fd
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A

View File

@ -177,7 +177,7 @@ export class VscodeHttpProvider extends HttpProvider {
[ [
{ url: route.query.workspace, workspace: true }, { url: route.query.workspace, workspace: true },
{ url: route.query.folder, workspace: false }, { 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, lastVisited,
], ],
remoteAuthority, remoteAuthority,