No settings update lock mechanism for multiple-windows update? #2771
Unanswered
sinedied
asked this question in
Extension Development QnA
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team,
I have an extension that tries to update the same user settings key from multiple workspace windows, but when it happens I get conflicts.
To give more context, I have a key like this:
And on a specific event, I need to update this setting from every open window, which triggers the conflict.
I tried using a file-based lock to ensure I call
config.update()
1 at a time, but I still get conflicts so I assume the configuration update might be delayed and happens async.Is there any solution to my problem?
I'm surprised though there isn't any built-in lock mechanism to settings updates.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions