Skip to content
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

Kate/fix env dispose gets stuck #2522

Merged
merged 3 commits into from
Jul 10, 2024
Merged

Conversation

zetmate
Copy link
Contributor

@zetmate zetmate commented Jul 10, 2024

Description of the bug:
The returned callback from loadEnvironmentConfigurations never gets called. And only there we remove env from openEnvironments map. So the result is envs are still in openEnvironments after being disposed as we only call closeAll that just calls dispose on env.

So I removed the unused callbacks + added openEnvironments.delete(env) when we call closeAll

Note: the tests are failing, so the pr is a draft for now until I fix them
UPD: tests are fixed

@zetmate zetmate requested a review from barak007 July 10, 2024 08:44
@zetmate zetmate marked this pull request as ready for review July 10, 2024 10:07
@zetmate zetmate merged commit 38ae17b into master Jul 10, 2024
6 checks passed
@zetmate zetmate deleted the kate/fix-env-dispose-gets-stuck branch July 10, 2024 10:20
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.

2 participants