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

Ensure model disposed after saving #11410

Conversation

colin-grant-work
Copy link
Contributor

What it does

Fixes a regression from #10562 where settings.json appears in Problems because a transaction fails to dispose of its reference to an editor.

How to test

  1. Open the application.
  2. Open the user-scoped settings.json file and ensure that it contains problems. (e.g. add a key that is not a preference like "not-a-preference": true
  3. Close the file.
  4. Open the Problems view.
  5. Observe that the file is not shown in the Problems view.
  6. Restart the application and open the Problems view.
  7. Observe that the file is not shown.

Review checklist

Reminder for reviewers

@colin-grant-work colin-grant-work added bug bugs found in the application preferences issues related to preferences labels Jul 12, 2022
Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I confirmed the bug on master and the changes work well 👍

@colin-grant-work colin-grant-work merged commit c0ee4dc into eclipse-theia:master Jul 12, 2022
@colin-grant-work colin-grant-work deleted the bugfix/ensure-reference-disposed branch July 12, 2022 14:29
@colin-grant-work colin-grant-work added this to the 1.28.0 milestone Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application preferences issues related to preferences
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants