Skip to content

Adopt new tree in custom views - #76407

Merged
Alex Ross (alexr00) merged 11 commits into
masterfrom
alexr00/adoptTreeCustomView
Jul 8, 2019
Merged

Alex Ross (alexr00) merged 11 commits into
masterfrom
alexr00/adoptTreeCustomView

Conversation

@alexr00

Copy link
Copy Markdown
Member

Fixes #63566

@alexr00

Copy link
Copy Markdown
Member Author

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
Copy Markdown
Member

Choose a reason for hiding this comment

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

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

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
Copy Markdown
Member

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
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
Copy Markdown
Member

Alex Ross (@alexr00) I had just one last comment otherwise LGTM

@alexr00

Copy link
Copy Markdown
Member Author

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

@alexr00
Alex Ross (alexr00) merged commit a70ca60 into master Jul 8, 2019
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 27, 2020
@alexr00
Alex Ross (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