1
0
mirror of https://git.tuxpa.in/a/code-server.git synced 2024-12-27 20:55:25 +00:00

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.
This commit is contained in:
Asher 2020-02-21 12:45:31 -06:00
parent cf0f11105b
commit 33b3523bf4
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A

View File

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