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

Adopt new tree in custom views #76407

Merged
merged 11 commits into from
Jul 8, 2019
Merged

Adopt new tree in custom views #76407

merged 11 commits into from
Jul 8, 2019

Conversation

alexr00
Copy link
Member

@alexr00 alexr00 commented Jul 1, 2019

Fixes #63566

@alexr00 alexr00 added this to the July 2019 milestone Jul 1, 2019
@alexr00 alexr00 requested a review from sandy081 July 1, 2019 13:18
@alexr00
Copy link
Member Author

alexr00 commented Jul 3, 2019

Note: This is still missing auto expanding of nodes, a feature that doesn't yet exist in the new tree. Once the functionality is available I'll add it before merging.

Copy link
Member

@sandy081 sandy081 left a comment

Choose a reason for hiding this comment

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

@alexr00 Changes look good and there are some minor suggestions. Please take a look. Thanks.

src/vs/workbench/browser/parts/views/media/views.css Outdated Show resolved Hide resolved
src/vs/workbench/browser/parts/views/customView.ts Outdated Show resolved Hide resolved
src/vs/workbench/browser/parts/views/customView.ts Outdated Show resolved Hide resolved
src/vs/workbench/browser/parts/views/customView.ts Outdated Show resolved Hide resolved
const resourceLabel = this.labels.create(container, { supportHighlights: true, donotSupportOcticons: true });
DOM.addClass(resourceLabel.element, 'custom-view-tree-node-item-resourceLabel');
const actionsContainer = DOM.append(resourceLabel.element, DOM.$('.actions'));
const actionsContainer = DOM.append(container, DOM.$('.actions'));
Copy link
Member

Choose a reason for hiding this comment

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

@alexr00 One minor question as asked before, is this change intentional? Why not use the same structure as before?

Copy link
Member Author

Choose a reason for hiding this comment

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

It is needed to have the correct alignment of the actions. Appending to the resourceLabel.element causes the action buttons to be right up against the resource label, instead of nicely aligned to the right.

@sandy081
Copy link
Member

sandy081 commented Jul 8, 2019

@alexr00 I had just one last comment otherwise LGTM

@alexr00
Copy link
Member Author

alexr00 commented Jul 8, 2019

Auto expand is still missing. I'm merging now to start getting selfhost bugs.

@alexr00 alexr00 merged commit a70ca60 into master Jul 8, 2019
@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
@alexr00 alexr00 deleted the alexr00/adoptTreeCustomView branch June 29, 2020 13:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adopt new tree for custom views
2 participants