Apex AssistThis 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 UseUnlike most other code analysis extensions this one is implemented using just Javascript so there no need to have Java installed to use it. To improve performance a filesystem cache is used to store previously analysed data. The first time you run over a new project the cache will be empty and it may take a few minutes for the analysis to complete, subsequent analysis on the same or similar projects should complete in a few seconds. 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:
QuickStart
You can monitor progress of the analysis in the VSCode Output Window, select 'Apex Assist' from the drop down menu. Multi-Package AnalysisThe 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. FAQ
|