From 28c73406081eb7c143629e2dd7cef3a93a24af86 Mon Sep 17 00:00:00 2001 From: Robert Beach Date: Mon, 18 Jan 2021 08:28:29 -0800 Subject: [PATCH] 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. --- src/node/vscode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/vscode.ts b/src/node/vscode.ts index e382d59b..d7a32983 100644 --- a/src/node/vscode.ts +++ b/src/node/vscode.ts @@ -43,7 +43,7 @@ export class VscodeProvider { options.args._ && options.args._.length > 0 ? { url: path.resolve(options.args._[options.args._.length - 1]) } : undefined, - !options.args["ignore-last-opened"] ? lastVisited : undefined, + !options.args["ignore-last-opened"] && !query.ew ? lastVisited : undefined, ]) settings.write({