I’m working on an extension that periodically makes requests to an HTTP API. If several VSCode windows are open, they all seem to make such requests which is not optimal.
Therefore I want to make sure that the requests are run in only one place, e.g. in one VSCode window or a global process, and then pushed to the other windows for update of a tree view.
How can this synchronization be done?