This extension provides advanced tools for supporting Salesforce Apex development. This version is Experimental in that it only supports finding unused methods & fields as an example analysis, the extension will highlight other code problems but only those that might impact this analysis.
Performance & Memory Use
The first time analysis can consume quite a lot of memory for large projects. The default maximum heap size for nodejs can be too small for this. You can increase the amount of memory available by setting the NODE_OPTIONS environment variable before starting VSCode:
You can monitor progress of the analysis in the VSCode Output Window, select 'Apex Assist' from the drop down menu.
The base analysis code supports full multi-package analysis but only a subset is currently supported by this extension. If you are analysing a project that depends on other packages you should provide a comma separated list of the namespaces in the "extraNamespaces" VS Code settings for 'Apex Assist'. This will suppress errors you will get otherwise because the namespace can not be found. See ApexLink for more information.