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 hover service in custom tree view #100477

Merged
merged 5 commits into from
Jun 22, 2020
Merged

Conversation

alexr00
Copy link
Member

@alexr00 alexr00 commented Jun 18, 2020

@alexr00 alexr00 marked this pull request as ready for review June 18, 2020 10:14
this.setupHovers(node.tooltip, templateData.container, disposableStore);
}

private setupHovers(tooltip: string | IMarkdownString | undefined, htmlElement: HTMLElement, disposableStore: DisposableStore): void {
Copy link
Member Author

Choose a reason for hiding this comment

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

@joaomoreno, in setupHovers I do all the handling of mouse over and mouse leave. Does this seem like a reasonable approach for hovers on tree items?

Copy link
Member

Choose a reason for hiding this comment

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

Since the tree does not own any of the contents within each tree row, that sounds about right.

@alexr00 alexr00 added this to the June 2020 milestone Jun 22, 2020
@alexr00 alexr00 merged commit fb36c0d into master Jun 22, 2020
@alexr00 alexr00 deleted the alexr00/adoptHoverInTreeView branch June 22, 2020 09:09
@github-actions github-actions bot locked and limited conversation to collaborators Aug 6, 2020
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.

2 participants