Skip to content

Don't re-render hovers if nothing has changed; Add telemetry on hovers#29387

Merged
alexdima merged 4 commits intomicrosoft:masterfrom
dadlerj:dna/hover
Oct 24, 2017
Merged

Don't re-render hovers if nothing has changed; Add telemetry on hovers#29387
alexdima merged 4 commits intomicrosoft:masterfrom
dadlerj:dna/hover

Conversation

@dadlerj
Copy link
Contributor

@dadlerj dadlerj commented Jun 24, 2017

See #29388

To illustrate the difference, I added a console.log whenever the ModesContentHoverWidget._renderMessages method is called.
See a video of how it behaves currently: https://cl.ly/2X2k0O1Z370q
And a video of how it behaves with my PR: https://cl.ly/0I15253M142X

The first commit adds the check for equality
The second commit adds telemetry for every hover

I'd be happy to kill the 2nd if you prefer it

@mention-bot
Copy link

@dadlerj, thanks for your PR! By analyzing the history of the files in this pull request, we identified @alexandrudima and @egamma to be potential reviewers.

@alexdima alexdima added this to the October 2017 milestone Oct 24, 2017
@alexdima alexdima merged commit 6a99187 into microsoft:master Oct 24, 2017
@alexdima
Copy link
Member

Thank you @dadlerj ❤️. I have removed the telemetry part from the PR and kept only the rendering part. Sorry for taking so long to merge this in!

@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 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.

5 participants