preferences: fix duplicated call to FoldersPreferencesProvider#12174
preferences: fix duplicated call to FoldersPreferencesProvider#12174paul-marechal merged 3 commits intomasterfrom
FoldersPreferencesProvider#12174Conversation
FoldersPreferencesProvider
FoldersPreferencesProviderFoldersPreferencesProvider
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. |
vince-fugnitto
left a comment
There was a problem hiding this comment.
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 (#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 <vincent.fugnitto@ericsson.com>
3364aaa to
95fa433
Compare
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