microsoft / AL

Home of the Dynamics 365 Business Central AL Language extension for Visual Studio Code. Used to track issues regarding the latest version of the AL compiler and developer tools available in the Visual Studio Code Marketplace or as part of the AL Developer Preview builds for Dynamics 365 Business Central.
MIT License
747 stars 245 forks source link

Hooks between two extensions #207

Closed bachii1010 closed 7 years ago

bachii1010 commented 7 years ago

Hi,

If we have two extensions made and if they make use of same object and has a link between these two extenions.

Then how is it possible in extensions 2.0.

Can you suggest us regarding this.

Thanks Varun Reddy

waldo1001 commented 7 years ago

How do you mean?

you can create "dependent" extensions - don't know if you mean that?

ghost commented 7 years ago

Last time I checked you had to put the NAVx file of the dependency extensions in your packages folder and then it lets you code against it.

bvbeek commented 7 years ago

You can define the dependencies in the app.json file here:

image

If you install the main app, it will install the extensions that are defined here.

waldo1001 commented 7 years ago

yes indeed: change the app.json, put the navx in the packages folder, and off you go!

an example of what you would put in the "dependencies":

"dependencies": [ { "appId": "af3ad7a7-bd49-4897-be18-4ed63589323d", "name": "NameOfTheAppYouMakeADependencyOn", "publisher": “waldo", "version": "1.0.0.0" } ]

bachii1010 commented 7 years ago

Hi all,

Thanks for the answers let me try to implement this and check