This article applies to:
Subroutine is not visible to Script Task Event when comment is placed on Signature Line.
The right parentheses shifts to the right to encapsulate the comment. In the image below, "SubWithComment" will not appear in the Task Event's dialog since ""This will not be visible" is on the same line as the sub-routine:
The image below shows that only "SubNoComment" and not "SubWithComment:"
Place the comment above or inside the Subroutine (e.g., SubNoComment in the example above).