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({