siw: add expand-all toolbar item#9749
Merged
vince-fugnitto merged 1 commit intomasterfrom Jul 20, 2021
Merged
Conversation
colin-grant-work
approved these changes
Jul 15, 2021
Contributor
colin-grant-work
left a comment
There was a problem hiding this comment.
Works well for me, and the code looks good. Two very optional comments.
packages/search-in-workspace/src/browser/search-in-workspace-result-tree-widget.tsx
Outdated
Show resolved
Hide resolved
packages/search-in-workspace/src/browser/search-in-workspace-result-tree-widget.tsx
Show resolved
Hide resolved
bfc1034 to
6a05595
Compare
alvsan09
reviewed
Jul 19, 2021
Contributor
Good catch. To make that work, we'll need to forward the expansion events from the tree to the |
The commit adds an `expand-all` toolbar item to the `search-in-workspace` widget to expand the result tree when it is collapsed. The commit also updates the icons in the widget to use the codicon counterparts. Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
a05e1b3 to
d2d065e
Compare
Member
Author
|
@alvsan09 I believe it is addressed if you'd like to retry 👍 expand-all-fix.mp4 |
alvsan09
approved these changes
Jul 20, 2021
Contributor
alvsan09
left a comment
There was a problem hiding this comment.
It works as expected and the code looks good to me ! 👍
Symbolic approval as I am not a committer..
Contributor
|
I reaffirm my earlier approval in light of the new changes. 👍 |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

What it does
Fixes: #7714
The pull-request introduces the
expand-alltoolbar item to thesearch-in-workspace(siw) widget to expand the result tree when it is collapsed. The toolbar toggles between thecollapse-allandexpand-allitems based on the state of the result tree:expand-all.mov
The
search-in-workspacetoolbar items are also updated to theircodiconcounterparts.How to test
search-in-workspacewidget and perform a search with multiple resultscollapse-all- confirm the toolbar toggles toexpand-alland the tree is collapsedexpand-all- confirm the toolbar toggles tocollapse-alland the tree is expandedReview checklist
Reminder for reviewers
Signed-off-by: vince-fugnitto vincent.fugnitto@ericsson.com