1
0
mirror of https://git.tuxpa.in/a/code-server.git synced 2024-12-26 12:15:26 +00:00

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.
This commit is contained in:
Robert Beach 2021-01-18 08:28:29 -08:00 committed by GitHub
parent 3394ece107
commit 28c7340608
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,
!options.args["ignore-last-opened"] ? lastVisited : undefined,
!options.args["ignore-last-opened"] && !query.ew ? lastVisited : undefined,
])
settings.write({