*ADDING `N.` TO THE SUITESCRIPT MODULE NAME IN DOC...
# sdf
z
ADDING
N.
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.
d
@zvictor if you are looking into IDE intellisense with SuiteScript, it may be of interest to check out this as well: https://github.com/headintheclouddev/typings-suitescript-2.0 above does not require scripts to be written in TypeScript, can be leveraged with plain JavaScript as well
👍🏼 2
z
Thank you!!