For the correct function, the controller must be defined in the window element using the apply attribute.(See screenshot example)
If you request the completion of the code in the apply attribute, then suggest the class of the controller; otherwise, suggest a controller attribute.
Known limitations:
Only suggest attributes defined in the controller do not suggest extended class attributes.
ZKCC suggest attributes thought they have not the getter/setter methods defiened.