[plugin] Save tree nodes to cache and fetch the nodes if they were changed #6007
Labels
enhancement
issues that are enhancements to current functionality - nice to haves
performance
issues related to performance
plug-in system
issues related to the plug-in system
tree
issues related to the tree (ex: tree widget)
Description
Currently the tree plugin API always requests tree nodes from the plugin side. We need to store the tree nodes in a cache once they were fetched and return only cached nodes. Cache must be updated by the plugin event. This will increase the tree performance.
Reproduction Steps
Children request is sent on each expand : https://github.com/theia-ide/theia/blob/7406add2a60106eaeba41a9b117d16e90c380764/packages/plugin-ext/src/plugin/tree/tree-views.ts#L91
OS and Theia version:
Diagnostics:
The text was updated successfully, but these errors were encountered: