Skip to content

Theia doesn't seem to be listening to tree view refresh event #15312

Answered by drochgenius
drochgenius asked this question in Q&A
Discussion options

You must be logged in to vote

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.

  • The onDidChangeTreeData listener is called.
  • Since elements is undefined, it calls this line, and it has the proper treeViewId value.
  • If I monitor the this.pendingRefresh promise, it eventually resolved successfully after a few milliseconds (~25ms).
  • As expected, I see the getChildren() method of my TreeDataProvider is 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 …

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@msujew
Comment options

@drochgenius
Comment options

@drochgenius
Comment options

@drochgenius
Comment options

Answer selected by drochgenius
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants