-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Make tree widget indentation configurable #13179
Make tree widget indentation configurable #13179
Conversation
cb08a95
to
4f07454
Compare
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.
I don't think this change is working as expected/as it should.
- Indent pinning doesn't work, see below.
- Increasing the indent also increases the indent of the root tree items. This isn't the case in vscode. In vscode, the root tree items always stay in the same spot. This indicates that we still need the
leftPadding
property that tells us how much the root tree items are padded, while adding aindentPadding
that tells us how much each indented tree item needs to be padded.
By fixing 2. you should also be able to fix 1. as a drive by.
packages/navigator/src/browser/open-editors-widget/navigator-open-editors-widget.tsx
Outdated
Show resolved
Hide resolved
4f07454
to
38ae7d5
Compare
Thank you for the review, @msujew I updated the code and restored the |
38ae7d5
to
fe913b7
Compare
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 mostly good to me, just one more issue see below. This should be good to go afterwards.
Make the indentation of the tree widget configurable via preference. Contributed on behalf of STMicroelectronics Signed-off-by: Alexandra Buzila <abuzila@eclipsesource.com>
fe913b7
to
588fedb
Compare
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.
Alright, looks good to me 👍
What it does
Make the indentation of the tree widget configurable via preference.
Contributed on behalf of STMicroelectronics
How to test
workbench.tree.indent
Workbench › Tree: Indent
preference and notice how the indentation of the tree widget, e.g. in the workspace navigator view, changes accordinglyReview checklist
Reminder for reviewers