Not really a “getting started” question, but does anyone have any insights what specific functionality the
activate function has when activating an extension? The docs state that
activateis invoked when the extension is loaded into a workspace, such as if a new workspace is opened or a new extension is installed while a workspace is already open.
which it does; however, both according to the docs and to my own observation, extensions load on a per workspace basis, meaning that all code in
main, not just
activate , runs when that happens. Try as I may, I couldn’t find any situation where
activate is called without the entire main script running again, so what am I missing? Is it just a matter of synchronous versus asynchronous execution during activation (
activate can be