Skip to content

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

Merged
Alexandru Dima (alexdima) merged 1 commit into
microsoft:masterfrom
LeonardoBraga:fixes-persistent-hover-manually-triggered
Jun 25, 2018
Merged

Alexandru Dima (alexdima) merged 1 commit into
microsoft:masterfrom
LeonardoBraga:fixes-persistent-hover-manually-triggered

Conversation

@LeonardoBraga

Copy link
Copy Markdown
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 Peng Lyu (@rebornix) to work for the use case of #25715.

@msftclas

Microsoft Contribution License Agreements (msftclas) commented Jun 18, 2018 •

Copy link
Copy Markdown

CLA assistant check
All CLA requirements met.

@LeonardoBraga Leonardo Braga (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
Leonardo Braga (LeonardoBraga) force-pushed the fixes-persistent-hover-manually-triggered branch 3 times, most recently from 745a1e2 to f26117c Compare June 18, 2018 04:23
@LeonardoBraga
Leonardo Braga (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
Leonardo Braga (LeonardoBraga) force-pushed the fixes-persistent-hover-manually-triggered branch from dbcb672 to 605ba83 Compare June 23, 2018 19:52
@LeonardoBraga

Copy link
Copy Markdown
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 / Peng Lyu (@rebornix) could you please review and let me know if there's any value in merging or any other feedback? Thanks!

@alexdima

Copy link
Copy Markdown
Member

👍 Thank you!

@alexdima
Alexandru Dima (alexdima) merged commit aa8f371 into microsoft:master Jun 25, 2018
@alexdima Alexandru Dima (alexdima) added this to the June 2018 milestone Jun 25, 2018
@LeonardoBraga
Leonardo Braga (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