Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In VSCode extensions TreeView selection is always empty #9672

Closed
xcariba opened this issue Jun 30, 2021 · 1 comment
Closed

In VSCode extensions TreeView selection is always empty #9672

xcariba opened this issue Jun 30, 2021 · 1 comment
Labels
tree issues related to the tree (ex: tree widget) vscode issues related to VSCode compatibility

Comments

@xcariba
Copy link
Contributor

xcariba commented Jun 30, 2021

Bug Description:

If you have tree view in vscode extension and want to access current selection using treeView.selection property - it will always be empty.

Steps to Reproduce:

  1. Implement VSCode TreeView
  2. Register it using window.createTreeView(...)
  3. Register command that uses tree view instance and add console.log('Len: ' + treeView.selection.length);
  4. It will always be empty

Additional Information

  • Operating System: Fedora
  • Theia Version: 1.14 / master
@xcariba xcariba mentioned this issue Jun 30, 2021
1 task
@vince-fugnitto vince-fugnitto added tree issues related to the tree (ex: tree widget) vscode issues related to VSCode compatibility labels Jun 30, 2021
@colin-grant-work
Copy link
Contributor

closed via #9673

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tree issues related to the tree (ex: tree widget) vscode issues related to VSCode compatibility
Projects
None yet
Development

No branches or pull requests

3 participants