An extension must export an activate() function from its main module,
and it will be invoked only once by the framework when any of the
specified activation events is emitted. Also, an extension should
export a deactivate() function from its main module to perform cleanup
tasks on framework shutdown. Extension must return a Promise from
deactivate() if the cleanup process is asynchronous. An extension
may return undefined from deactivate() if the cleanup runs
synchronously.
An extension must export an
activate()
function from its main module, and it will be invoked only once by the framework when any of the specified activation events is emitted. Also, an extension should export adeactivate()
function from its main module to perform cleanup tasks on framework shutdown. Extension must return aPromise
fromdeactivate()
if the cleanup process is asynchronous. An extension may return undefined fromdeactivate()
if the cleanup runs synchronously.