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.
exportfunctionactivate(context: vscode.ExtensionContext) { letapi = { sum(a, b) { returna + b; }, mul(a, b) { returna * b; } }; // 'export' public api-surface returnapi; }
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:
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 topackage.json, and use the getExtension-function and the exports-property, like below: