-
Notifications
You must be signed in to change notification settings - Fork 28.7k
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
TreeViewPane command context selected TreeItem #157803
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Since this is new API we should have an example of how it's used. The tree view sample is always a good place for examples. Maybe the jsonOutline.renameNode
command is a good candidate to use this API?
The |
I was thinking you could add |
Commands in the TreeViewPane get access to the selected TreeItems. The command receives an object with the property selectedTreeItems which stores the list of selected TreeItems. By returning an object, it will be easier to expand the argument properties we pass to the command in the future. #42903