Skip to content
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

Adding persistance mechanism to content hover sizes #187557

Merged
merged 2 commits into from
Jul 11, 2023

Conversation

aiday-mar
Copy link
Contributor

@aiday-mar aiday-mar commented Jul 11, 2023

Fixes #185743

The persistance mechanism work as follows. When the content hover is resized, its size at that moment is remembered. During the next rendering of a content hover, the maximum size of the content hover is set to be:

maxSize = Math.max(defaultMaxSize, previousSize)

The previous size is stored as static variables (for the width and height) in the ContentHoverWidget class. Therefore on restarting VS Code, the persisted size will be lost.

@aiday-mar aiday-mar self-assigned this Jul 11, 2023
@aiday-mar aiday-mar requested a review from jrieken July 11, 2023 10:01
@aiday-mar aiday-mar marked this pull request as ready for review July 11, 2023 12:21
@VSCodeTriageBot VSCodeTriageBot added this to the July 2023 milestone Jul 11, 2023
@aiday-mar aiday-mar requested a review from jrieken July 11, 2023 13:43
@aiday-mar aiday-mar merged commit 852936e into main Jul 11, 2023
6 checks passed
@aiday-mar aiday-mar deleted the aiday/persistanceMechanismHover branch July 11, 2023 14:32
@github-actions github-actions bot locked and limited conversation to collaborators Aug 25, 2023
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.

[Feature] Add a mechanism to persist the content hover size
3 participants