Skip to content

Conversation

@Tyriar
Copy link
Member

@Tyriar Tyriar commented Jun 7, 2021

There were 2 problems here:

  • The timeout wasn't cleared, so the hover could reshow
  • When the setupCustomHover dispose was called, the hover wouldn't be disposed

Fixes #125565

There were 2 problems here:
- The timeout wasn't cleared, so the hover could reshow
- When the setupCustomHover dispose was called, the hover wouldn't be disposed

Fixes #125565
@Tyriar Tyriar added this to the June 2021 milestone Jun 7, 2021
@Tyriar Tyriar requested a review from aeschli June 7, 2021 14:02
@aeschli aeschli requested review from aeschli and alexr00 and removed request for aeschli June 7, 2021 14:48
@aeschli
Copy link
Contributor

aeschli commented Jun 7, 2021

Thanks @Tyriar , the changes make sense. I believe the mouseMoveDomEmitter also need to be disposed when the timeout is disposed.
To be save, maybe also the mouseLeaveDomEmitter, mouseDownDomEmitter.

Asking @alexr00 for a review as well. I basically moved the code from icon label to a separate class and the one change I did is moving away from the deprecated domEvent to use DomEmitter.

I'm happy to look into proper disposing, just let me know.

@Tyriar
Copy link
Member Author

Tyriar commented Jun 7, 2021

@aeschli thanks, if you can clean this up and merge that would be great 👍

@alexr00
Copy link
Member

alexr00 commented Jun 8, 2021

👍 to what Martin said. All the emitters should also be disposed to be safe.

@aeschli
Copy link
Contributor

aeschli commented Jun 9, 2021

I polished the code a bit and made sure all listeners, the timeout and the hover widget get disposed: 8a17eb3abf7fa6ae906817d8492db2d64fa1fb56

@aeschli aeschli closed this Jun 9, 2021
@Tyriar Tyriar deleted the tyriar/125565 branch June 9, 2021 22:25
@github-actions github-actions bot locked and limited conversation to collaborators Jul 24, 2021
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.

[Insiders] Terminal tooltip staying after task terminal killed

4 participants