Skip to content

fix: do not hide hover on model content change of editor - #198066

Closed
Alen Ajam (oxcened) wants to merge 1 commit into
microsoft:mainfrom
oxcened:fix-color-picker-hover
Closed

fix: do not hide hover on model content change of editor#198066
Alen Ajam (oxcened) wants to merge 1 commit into
microsoft:mainfrom
oxcened:fix-color-picker-hover

Conversation

@oxcened

Copy link
Copy Markdown
Contributor

Fixes #197588.

What I did

So the issue arised in 18.4.0 with #196709, in particular this line.
The reason of the issue is because whenever a color is picked through any of the selectors, a change is immediately triggered on the editor. That triggers the editor's onDidChangeModelContent emitter, therefore the hover widget triggers the _hideWidgets method.
So it's actually a very easy flow to understand: color picker changes editor content -> editor triggers emitter -> hover widget hides itself.

I have changed the method called on model content change so that we just cancel the scheduler and we don't hide the widget as well.
I just need some help with debugging the previous issue #196660 in order to make sure that this is not introducing regressions on that one.

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.

Color Picker closes prematurely after clicking anywhere in the picker.

2 participants