Skip to content

Conversation

@devvaannsh
Copy link
Member

When user clicks on the live preview iframe in highlight/edit mode, the window loses focus to the iframe. Later when user clicks back on the editor, window.focus fires and this does a git refresh (a full git refresh when git panel is visible)
this was a huge performance drawback....

now, we maintain a focusWentToLivePreview variable using which before refreshing git we check if the focus was taken by live preview, if its true then we ignore the git refresh....

@sonarqubecloud
Copy link

@devvaannsh devvaannsh requested a review from abose January 16, 2026 14:03
@abose abose merged commit cef19ec into main Jan 16, 2026
19 of 21 checks passed
@abose abose deleted the pluto/lp-git-fix branch January 16, 2026 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants