Add --ignore-last-opened option (#2434)

This allows bypassing the last opened behavior for certain cases where that's not desirable.

Fixes #1951
This commit is contained in:
JammSpread
2020-12-15 11:22:58 -05:00
committed by GitHub
parent 7e05ca09bb
commit f4ca41329a
2 changed files with 7 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ export class VscodeProvider {
options.args._ && options.args._.length > 0
? { url: path.resolve(options.args._[options.args._.length - 1]) }
: undefined,
lastVisited,
!options.args["ignore-last-opened"] ? lastVisited : undefined,
])
settings.write({