Skip to content

Fix close folder/workspace #2532

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 18, 2021
Merged

Fix close folder/workspace #2532

merged 2 commits into from
Jan 18, 2021

Conversation

rdbeach
Copy link
Contributor

@rdbeach rdbeach commented Dec 30, 2020

When you try to close the current folder, it doesn't close properly because the lastVisited setting is still used. This checks the Empty Window (ew) parameter and ignores lastVisited if true.

Fixes #2337

When you choose to close the current folder, it doesn't close properly because the lastVisiited setting is still use. This fixes that.
@code-asher
Copy link
Member

Awesome, thanks for fixing this!

Do you think we should clear lastVisited from the settings file as well? Otherwise if you close the folder then go back later (without the ew parameter) the last visited directory would open again. I'm not sure which is the expected behavior though.

@code-asher code-asher self-assigned this Jan 5, 2021
@rdbeach
Copy link
Contributor Author

rdbeach commented Jan 6, 2021

Yes. I didn't think about that.

@nhooyr nhooyr added this to the v3.8.1 milestone Jan 18, 2021
@nhooyr nhooyr changed the base branch from master to rdbeach January 18, 2021 16:27
@nhooyr
Copy link
Contributor

nhooyr commented Jan 18, 2021

Thanks for contributing @rdbeach

I'm going to merge your PR into rdbeach and then make some changes into that branch to get this ready for merge.

@nhooyr nhooyr merged commit 28c7340 into coder:rdbeach Jan 18, 2021
@nhooyr nhooyr removed this from the v3.8.1 milestone Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants