-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editor: Improve Signal Dock for script classes #80411
Editor: Improve Signal Dock for script classes #80411
Conversation
* Add signal documentation for script classes. * Use separate sections for script class inheritance.
206be5d
to
1d5539c
Compare
} | ||
descr_cache[base][signal_name] = descr; | ||
descr_cache[doc_class_name][signal_name] = descr; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The cache is not invalidated until the editor is restarted. This is good for native classes, but bad for scripts. Perhaps we should not cache script signal descriptions?
We could also move the loop outside to prevent unnecessary iterations (actually, this is not so important since a class usually has few signals).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess not caching script signal descriptions might be fine, provided that it's not too costly to recompute each time.
Otherwise they could be cached separately, and the script cache entry marked dirty whenever the script changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Thanks! |
Before
After