Theia doesn't seem to be listening to tree view refresh event #15312
-
|
I have a Visual Studio Code extension when I contributed Tree Views. For context, it's a custom tree view that fetches its data from a server, it is not a file browser. I've also implemented a button to refresh the tree view according to the VSCode extenstion docs: https://code.visualstudio.com/api/extension-guides/tree-view#updating-tree-view-content I checked on the Theia compatibility table that the function I found the associated code that handles this in Theia: However, when I fire the event on the EventEmitter, Theia doesn't seem to be listening. I am unable to have the content of my tree view re-fetched from the server when needed. As a result, my users have to reload their browsers. This is an excerpt of my implementation: When Am I missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
|
cc @tsmaeder |
Beta Was this translation helpful? Give feedback.
-
|
We had to rollback to Theia 1.58. |
Beta Was this translation helpful? Give feedback.
I am running Theia 1.59 now with my plugin, and I was able to confirm that when I fire the event, it's actually properly caught by Theia.
onDidChangeTreeDatalistener is called.elementsis undefined, it calls this line, and it has the propertreeViewIdvalue.this.pendingRefreshpromise, it eventually resolved successfully after a few milliseconds (~25ms).getChildren()method of myTreeDataProvideris properly called on refresh.Only there is no visible changes in the Tree View after refresh, but I assume it's because the tree view is already up to date.
When I go back to Theia 1.58, it is not working.
So this confirms that this was a …