0

I'd like to have code/metadata from different Salesforce Orgs (Sandboxes and Prod) in VSC/SFDX and be able to quickly access it.

For that, I have tried to use VSC's Workspaces and have added 3 folders (one for each Sandbox/Project) into a Workspace (The Workspace is in a specific Folder called \CLIENT_WORKSPACE).

This is causing each Project (for each SBX) losing its relationship with its cloud environment and when trying to Retrieve code (with SFDX mouse right click), I get this error:

Error deploying or retrieving source: The file or directory that you tried to deploy or retrieve isn't in a package directory that's specified in your sfdx-project.json file. Add this location to your "packageDirectories" value, or deploy or retrieve a different file or directory. For details about sfdx-project.json, see: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_ws_config.htm

How can I setup my Workspace (with all my Projects inside) without causing the above mentioned issue?

Thank you very much.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.