When testing code, I disable certain sections by temporarily including them in an 'if' statement, for example:
- Code: Select all
if ( true )
{
/** @type {JSFoundset<db:/databaseName/tableName>} */
var fs = databaseManager.getFoundSet( 'databaseName', 'tableName' )
fs.fieldName1 = data1
}
Within the 'if' statement, if I add another line of code, for example:
- Code: Select all
fs.fieldName2 = data2
the JSDoc code completion works as I type. However, if I change 'true' to 'false', then code completion is disabled within the 'if' statement.
What is the purpose of disabling code completion based on a conditional statement in my code? This strikes me as odd behavior, but, perhaps there is a plausable explanation?