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

Add indent guidelines to all trees #8173

Closed
wants to merge 1 commit into from
Closed

Add indent guidelines to all trees #8173

wants to merge 1 commit into from

Conversation

kaiyue0329
Copy link
Contributor

@kaiyue0329 kaiyue0329 commented Jul 14, 2020

What it does

Fixes #6586

  • Add preference to set 'workbench.tree.renderIndentGuides' to 'onHover' (default), 'none' or 'always'
  • When nodes are selected, indent guidelines are rendered for all the sibling nodes
  • When parent node is selected, indent guidelines are rendered for all the child nodes
  • When hovering over a tree, indent guidelines are displayed for all expanded nodes
  • Selecting multiple nodes works in a similar fashion

How to test

  • Set the workspace preference to 'onHover', 'none', 'always' and the rendering of the indent guidelines should change accordingly.
  • In different locations in Theia where the tree is being used (for example, in navigator, search in workspace, outline, problems-view and scm (list mode and tree mode)), select one/more nodes to test if the indent guidelines are rendered correctly.

Review checklist

Reminder for reviewers

@kaiyue0329
Copy link
Contributor Author

kaiyue0329 commented Jul 14, 2020

The previous indent guidelines PR was closed due to the fork being deleted. Please refer to that PR for previous comments/discussion.

@vince-fugnitto vince-fugnitto added navigator issues related to the navigator/explorer scm issues related to the source control manager tree issues related to the tree (ex: tree widget) labels Jul 15, 2020
@akosyakov akosyakov self-requested a review July 15, 2020 09:31
@kaiyue0329 kaiyue0329 requested a review from akosyakov July 16, 2020 23:01
@kaiyue0329
Copy link
Contributor Author

kaiyue0329 commented Jul 27, 2020

@akosyakov This PR is ready for another view. I was wondering if you could take a look when you have a minute.

@kaiyue0329 kaiyue0329 marked this pull request as draft July 29, 2020 02:02
@kaiyue0329 kaiyue0329 marked this pull request as ready for review July 30, 2020 19:25
@kaiyue0329 kaiyue0329 requested a review from akosyakov July 30, 2020 19:25
- Add preference to set 'workbench.tree.renderIndentGuides' to 'onHover' (default), 'none' or 'always'
- When nodes are selected, indent guidelines are rendered for all the sibling nodes
- When parent node is selected, indent guidelines are rendered for all the child nodes
- When hovering over a tree, indent guidelines are displayed for all expanded nodes
- Selecting multiple nodes works in a similar fashion

Signed-off-by: Kaiyue Pan <kaiyue.pan@ericsson.com>
@akosyakov
Copy link
Member

akosyakov commented Aug 4, 2020

minimal/backward compatible change: #8298 @kaiyue0329 I've added you as a co-author.

@akosyakov akosyakov closed this Aug 5, 2020
@akosyakov
Copy link
Member

Superseded by #8298

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
navigator issues related to the navigator/explorer scm issues related to the source control manager tree issues related to the tree (ex: tree widget)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ui/ux][tree] Help the tree indentation with vertical lines, mimic VS Code
4 participants