Skip to content

Fixes stuck hover widget when triggered manually, with "editor.hover": false#52147

Merged
alexdima merged 1 commit intomicrosoft:masterfrom
LeonardoBraga:fixes-persistent-hover-manually-triggered
Jun 25, 2018
Merged

Fixes stuck hover widget when triggered manually, with "editor.hover": false#52147
alexdima merged 1 commit intomicrosoft:masterfrom
LeonardoBraga:fixes-persistent-hover-manually-triggered

Conversation

@LeonardoBraga
Copy link
Contributor

If the editor's preference editor.hover is set to false and the hover widget is triggered with CMD + K, CMD + I, it gets stuck in the page and does not go away with interactions such as mouse movement, mouse leave, editor scroll or editor model changes. This PR fixes this behaviour by hiding the tooltip when the above interactions happen.

Also, this PR adds support to react to changes on the preference editor.hover without having to reload the editor, effectively allowing the plugin suggested by @rebornix to work for the use case of #25715.

@msftclas
Copy link

msftclas commented Jun 18, 2018

CLA assistant check
All CLA requirements met.

@LeonardoBraga LeonardoBraga changed the title Fixes stuck hover widget when triggered manually, with "editor.hover": false Fixes stuck hover widget when triggered manually, with "editor.hover": false Jun 18, 2018
@LeonardoBraga LeonardoBraga force-pushed the fixes-persistent-hover-manually-triggered branch 3 times, most recently from 745a1e2 to f26117c Compare June 18, 2018 04:23
@rebornix rebornix assigned alexdima and rebornix and unassigned rebornix Jun 18, 2018
@LeonardoBraga LeonardoBraga force-pushed the fixes-persistent-hover-manually-triggered branch 2 times, most recently from ef519ae to dbcb672 Compare June 23, 2018 19:51
- Adds support to toggle hover without reloading the editor
@LeonardoBraga LeonardoBraga force-pushed the fixes-persistent-hover-manually-triggered branch from dbcb672 to 605ba83 Compare June 23, 2018 19:52
@LeonardoBraga
Copy link
Contributor Author

This PR was in conflict after the commit from @alexandrudima on June 22nd, but I've addressed the conflicts and its merging cleanly again.

@alexandrudima / @rebornix could you please review and let me know if there's any value in merging or any other feedback? Thanks!

@alexdima
Copy link
Member

👍 Thank you!

@alexdima alexdima merged commit aa8f371 into microsoft:master Jun 25, 2018
@alexdima alexdima added this to the June 2018 milestone Jun 25, 2018
@LeonardoBraga LeonardoBraga deleted the fixes-persistent-hover-manually-triggered branch June 26, 2018 13:08
@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.

4 participants