Add utility to create file based caches/indexes in editor #11549
HolonProduction
started this conversation in
Editor
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While developing on godotengine/godot#99318 I really missed an easy way to implement a cache or index to quickly access some details about certain files. Implementing something like this from scratch for every PR that could benefit from it is just too tedious and error prone.
Also we have performance problems with GDScript autocompletion which could be solved with a longterm cache. But implementing it from scratch would just duplicate code, logic and bugs from other systems like the documentation cache.
I have worked a bit with the IntelliJ platform sdk recently and really like their approach to that. They offer a
FileBasedIndex
class were all you need to do is extract information from a file, and the IDE will handle updating the index based on file changes.I think Godot could benefit from something similar as well. You would basically have an index class which you can register with the editor file system, which will then call some callbacks to update the index. Data could be accessed through the instance registered with editor file system.
Possible advantages I see:
Possible problems:
Beta Was this translation helpful? Give feedback.
All reactions