-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
preferences: fix duplicated call to FoldersPreferencesProvider
#12174
Conversation
FoldersPreferencesProvider
FoldersPreferencesProvider
FoldersPreferencesProvider
62e23c7
to
7971705
Compare
7971705
to
da64ed6
Compare
@AlexandraBuzila can you take over fixing the test suite? This is what you forgot to do the first time you introduced the change to merge configs together: The tests must be updated accordingly. |
Hi @paul-marechal! Yes, I can have a look at the tests. Unrelated question: I was able to run the tests on your branch locally, but after reapplying my changes I keep getting an NSFW service error and the tests are pending.
I had this happen in the past as well, but it resolved itself after a few retries. Now I can't get them to work at all. Do you maybe know if there's a trick to fix this? I'm running on linux. |
I think the launch test suite is currently being skipped. edit: They're not. We're indeed missing the the changes from #12126 |
Hi @paul-marechal The target for that PR is this branch, as your changes are needed as well for the tests to work. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look good to me 👍
- confirmed that preferences at different scopes are properly applied
- confirmed that the additional unit-tests pass successfully
- confirmed that merged configurations work well (Launch configurations are not available for running #8987)
This is useful to disable the `PreferenceScope.Folders` scope when it no longer applies upon preference resolution.
This reverts commit a3b9735 and fixes the launch-preferences tests
Co-authored-by: Vincent Fugnitto <[email protected]>
3364aaa
to
95fa433
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Properly inhibit preference providers when they shouldn't apply during resolution.
How to test
Debug the following method:
theia/packages/core/src/browser/preferences/preference-service.ts
Lines 563 to 581 in 7971705
Make sure it doesn't end up calling the same provider twice.
Review checklist
Reminder for reviewers