TreeView.reveal on new TreeView #47153
Labels
bug
Issue identified by VS Code Team member as probable bug
tree-views
Extension tree view issues
verified
Verification succeeded
Milestone
Steps to Reproduce:
createTreeView
in the activate function of an extensionreveal
on the returned view (while also in the activate function)Is there a clean way to immediately use
reveal
on a just createdTreeView
? Specifically, in the activate function of my extension, I have:The problem is that myView is immediately returned and you can call reveal without an error, but it actually doesn't work because the view hasn't been created in the UI yet. How can I detect when the view has been created in the UI, then call reveal? I can't even rely on logic in the treeDataProvider constructor due to the same issue (view hasn't been created in the UI yet, so calling reveal from there doesn't work and doesn't generate an error).
The text was updated successfully, but these errors were encountered: