Search code examples
visual-studio-codesalesforcesfdxsalesforce-cli

VSCode / Salesforce - Deploy Source to Org very slow to complete, although actual deployment is fast?


I don't know when this started working, but my deployments are horifically slow now and I'm not sure why...

I change a single apex class, right-click the file and pick SFDX:Deploy Source to Org, and it's taking well over 5 minutes for the "Running..." scrollbar to vanish.

The weird thing is, if I look in the Org under "Deployment Status", it completed ages ago, taking under a minute (start/finish time are the same).

Any ideas what VSCode is doing after the deployment completes that's taking so long? The CLI is on version 7.201.6


Solution

  • I was facing the same issue today. I faced the issue with v57.15.0. I installed an earlier version of Salesforce CLI which was v57.13.1 and my deployment time is not slow anymore.