styling: TreeWidget Highlighted nodes full display #12470
Merged
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
There is a display discrepancy on selected nodes between Theia and VS Code, as seen below:
VS Code
Theia
This commit fixes that discrepancy in display. As seen below:
This Commit
Notes
I have added some extra code handling to keep the current display of Theia. However, as seen in VS Code, the left margin/padding for the Search-In-Workspace and Source-Control trees is no different from the Explorer and Reference trees. As such, if the VS Code tree alignment is preferable, it would also reduce the number of lines added.
How to test
Review checklist
Reminder for reviewers