zvictor
12/23/2020, 6:14 AMN.
TO THE SUITESCRIPT MODULE NAME IN DOC BLOCKS
A note on define
doc blocks toward improving code inspection/static code analysis related functionality in the SuiteCloud IDE for WebStorm.
The SuiteScript 2.0 API-generated templates for various script types generate doc blocks that refer to SuiteScript modules without the N
scope. In consequence, when the module name is the same as another name in scope, IDE functionality that relies on static code analysis (code complete, code inspection, etc.) may not understand that the module and its members refer to the SuiteScript library (which gets installed with the SuiteCloud IDE plug-in).
One example: in WebStorm, when you hold down the Control key and hover with the mouse cursor over a symbol, WebStorm turns it into a hyperlink, which you can click to go to the actual source. In SuiteScript, that would take you directly to the module spec file in the library.dbarnett
12/23/2020, 12:46 PMzvictor
12/23/2020, 11:51 PM