nawforce / apex-assist

VSCode extension for Salesforce Apex development with support for offline validation.
Other
18 stars 2 forks source link

question: managed packages #11

Closed tsadigovAgmail closed 2 years ago

tsadigovAgmail commented 2 years ago

I can not make this work for references to managed package. We do not have source for it so your parser will not be able to parse to get metadata. I installed package to the scratch org. Is there a way to fetch definitions?

nawforce commented 2 years ago

Hi Tural,

At the moment it does not have the ability to download metadata although I am working on this so at the moment so it should be possible fairly soon. What you can do though is declare the namespace of the managed package so you wont see errors for it. To do this add this to the end of your sfdx-project.json file.

"plugins": {
    "dependencies": [
        {"namespace": "aa"}
    ]
}

This just tells the extension to ignore the use of metadata in the 'aa' namespace and assume it is OK.

Regards Kev

nawforce commented 2 years ago

You can now download metadata from an org, little demo at youtu.be/B4lznOZ7Wts.