extensions
Namespace for dealing with installed extensions. Extensions are represented by an Extension-interface which enables reflection on them.
Extension writers can provide APIs to other extensions by returning their API public
surface from the activate
-call.
When depending on the API of another extension add an extensionDependencies
-entry
to package.json
, and use the getExtension-function
and the exports-property, like below:
const podmanExtension = extensions.getExtension('podman-desktop.podman');
const podmanExtensionAPI = podmanExtension.exports;
podmanExtensionAPI....