Skip to content

Commit 28c7340

Browse files
authored
Fix Close Folder/Workspace (#2532)
When you choose to close the current folder, it doesn't close properly because the lastVisiited setting is still use. This fixes that.
1 parent 3394ece commit 28c7340

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/vscode.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class VscodeProvider {
4343
options.args._ && options.args._.length > 0
4444
? { url: path.resolve(options.args._[options.args._.length - 1]) }
4545
: undefined,
46-
!options.args["ignore-last-opened"] ? lastVisited : undefined,
46+
!options.args["ignore-last-opened"] && !query.ew ? lastVisited : undefined,
4747
])
4848

4949
settings.write({

0 commit comments

Comments
 (0)