Skip to content

Commit 33b3523

Browse files
committed
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.
1 parent cf0f111 commit 33b3523

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/app/vscode.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ export class VscodeHttpProvider extends HttpProvider {
177177
[
178178
{ url: route.query.workspace, workspace: true },
179179
{ url: route.query.folder, workspace: false },
180-
lastVisited,
181180
this.args._ && this.args._.length > 0 ? { url: this.args._[this.args._.length - 1] } : undefined,
181+
lastVisited,
182182
],
183183
remoteAuthority,
184184
)

0 commit comments

Comments
 (0)