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

outline: add 'expand-all' toolbar item #12188

Merged
merged 1 commit into from
Mar 1, 2023
Merged

Conversation

vince-fugnitto
Copy link
Member

What it does

The pull-request adds support for the expand-all toolbar item for the outline-view in order to expand rendered nodes. The changes mean that the toolbar item for collapse-all and expand-all will be toggleable based on the state of the view.

How to test

  1. start the application and open editors
  2. for a given editor, confirm that the outline-view is correctly displayed
  3. using the toolbar-item should collapse-all or expand-all respectfully

Review checklist

Reminder for reviewers

@vince-fugnitto vince-fugnitto added the outline issues related to the outline label Feb 15, 2023
Copy link
Member

@msujew msujew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍 I can confirm that the toolbar entry works just like in VSCode:

  • As long as any node is expanded the toolbar offers to collapse the outline
  • When all nodes are collapsed, it offers to expand all nodes
  • Expanding and collapsing manually updates the toolbar command as expected

@tsmaeder
Copy link
Contributor

@paul-marechal anything we're waiting for on this one?

The commit adds support for the `expand-all` toolbar item for the
`outline-view` in order to expand rendered nodes. The changes mean that
the toolbar item for `collapse-all` and `expand-all` will be toggleable
based on the state of the view.

Signed-off-by: vince-fugnitto <[email protected]>
@vince-fugnitto vince-fugnitto merged commit 5e6bd8d into master Mar 1, 2023
@vince-fugnitto vince-fugnitto deleted the vf/outline-expand-all branch March 1, 2023 14:09
@github-actions github-actions bot added this to the 1.36.0 milestone Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
outline issues related to the outline
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants