Repository navigation
TreeViewPane command context selected TreeItem - #157803
Merged
Benjamin Christopher Simmonds (benibenj) merged 2 commits intoAug 11, 2022
Merged
Benjamin Christopher Simmonds (benibenj) merged 2 commits into
Benjamin Christopher Simmonds (benibenj) merged 2 commits into
Conversation
Benjamin Christopher Simmonds (benibenj)
requested a review
from Alex Ross (alexr00)
August 10, 2022 15:25
Alex Ross (alexr00)
approved these changes
Aug 11, 2022
Alex Ross (alexr00)
left a comment
Member
There was a problem hiding this comment.
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?
Contributor
Author
|
The |
Member
|
I was thinking you could add |
Benjamin Christopher Simmonds (benibenj)
deleted the
benibenj/treeItemContextFromCommand
branch
August 11, 2022 12:05
Benjamin Christopher Simmonds (benibenj)
added a commit
that referenced
this pull request
Aug 24, 2022
Benjamin Christopher Simmonds (benibenj)
added a commit
that referenced
this pull request
Aug 25, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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