Skip to content

Fix hover stuttering. #11675

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

Merged
merged 2 commits into from
May 7, 2020
Merged

Fix hover stuttering. #11675

merged 2 commits into from
May 7, 2020

Conversation

rchiodo
Copy link

@rchiodo rchiodo commented May 7, 2020

For #11422

We were too aggressive in our hover closing. The bug was caused by hovering over one item closing another. This is unnecessary if inside the same window still.

Note, this isn't a regression, but while figuring out if it was a regression or not, I just fixed it instead.

@rchiodo rchiodo self-assigned this May 7, 2020
@codecov-io
Copy link

codecov-io commented May 7, 2020

Codecov Report

Merging #11675 into master will decrease coverage by 0.61%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #11675      +/-   ##
==========================================
- Coverage   61.27%   60.65%   -0.62%     
==========================================
  Files         593      627      +34     
  Lines       32493    33879    +1386     
  Branches     4594     4765     +171     
==========================================
+ Hits        19910    20550     +640     
- Misses      11581    12335     +754     
+ Partials     1002      994       -8     
Impacted Files Coverage Δ
.../datascience/jupyter/interpreter/jupyterCommand.ts 9.48% <0.00%> (-45.69%) ⬇️
src/client/datascience/jupyter/jupyterVariables.ts 25.00% <0.00%> (-25.58%) ⬇️
src/client/datascience/jupyter/jupyterUtils.ts 57.14% <0.00%> (-20.36%) ⬇️
src/client/common/net/httpClient.ts 72.50% <0.00%> (-18.13%) ⬇️
src/client/common/errors/errorUtils.ts 50.00% <0.00%> (-16.67%) ⬇️
src/client/common/process/types.ts 84.61% <0.00%> (-15.39%) ⬇️
src/datascience-ui/react-common/arePathsSame.ts 75.00% <0.00%> (-12.50%) ⬇️
src/client/common/utils/platform.ts 64.70% <0.00%> (-11.77%) ⬇️
...t/datascience/jupyter/kernels/jupyterKernelSpec.ts 92.30% <0.00%> (-7.70%) ⬇️
.../datascience/editor-integration/codeLensFactory.ts 52.56% <0.00%> (-6.21%) ⬇️
... and 147 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d96be50...465d31d. Read the comment docs.

if (!this.coordsInsideEditor(e.clientX, e.clientY)) {
// tslint:disable-next-line: no-any
const hover = this.state.editor.getContribution('editor.contrib.hover') as any;
if (hover._hideWidgets && e.clientX) {
Copy link
Member

Choose a reason for hiding this comment

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

Change looks good. Just wondering, why is the e.clientX needed here?

Copy link
Author

Choose a reason for hiding this comment

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

Duh. That was a leftover when I was debugging it. I will remove.

@sonarqubecloud
Copy link

sonarqubecloud bot commented May 7, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@rchiodo rchiodo merged commit 4b06a77 into master May 7, 2020
@rchiodo rchiodo deleted the rchiodo/hover_flash branch May 7, 2020 19:41
@lock lock bot locked as resolved and limited conversation to collaborators May 20, 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.

4 participants