1

I want to use Visual Studio Code for development in my sandbox and I was able to setup as per this article.

Everything is working fine but whenever I make any change to ApexClass, I need to right click on the file and choose the option SFDX: Deploy Source to Org or run the below command

sfdx force:source:deploy -p path/to/source

Has anyone come up with a hack/workaround for this problem so that ApexClass is automatically compiled as it does in Force IDE/MavensMate?

NOTE: This question is about scratch orgs and this is about sandbox.

1 Answer 1

3

Salesforce is still working on this feature and I see this part of the release PR shortly .Good news !!!

However note that it will still use the Metadata API deployment which is not bad but takes time .Seems like Salesforce will fix this and improve the performance under the hood .

However you should be able to use the vscode extension I personally built that uses tooling api under the hood and I have observed to be much faster for apex , vf, web components and aura bundles .These are not hard to build if you know Typescript and VScode extension apis and SalesforceDx cli.

Note that this extension will work only once you install the custom cli plugin i built by running sfdx:plugins install mo-dx-plugin

2
  • Just finished installing and I can confirm that it is working. Thank you so much for your time in building this tool and answering my question/tweet.
    – javanoob
    Jan 9, 2019 at 1:54
  • You are welcome and any time you need anything with it ,do let me know !! Jan 9, 2019 at 1:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .