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

Fix White flash issue in window.ts (#132339) #245208

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

adityaonx
Copy link

@adityaonx adityaonx commented Apr 1, 2025

Fixes #132339

I modified this line, so the white flash won't occur when opening VS Code in maximized window happening in Windows OS.

Before

1IssueVid.mp4

After

1IssueFix.mp4

@bpasero bpasero assigned bpasero and unassigned joyceerhl Apr 1, 2025
@bpasero
Copy link
Member

bpasero commented Apr 1, 2025

@adityaonx thanks a bunch for getting us a bit closer to solve this puzzle. however I think now we are trading the white flash issue with seeing a normal sized window growing to maximize state on startup, which is also annoying. Given what you found out I would like to take this back to the Electron issue and ask what is going on 🙏

@adityaonx
Copy link
Author

@adityaonx thanks a bunch for getting us a bit closer to solve this puzzle. however I think now we are trading the white flash issue with seeing a normal sized window growing to maximize state on startup, which is also annoying. Given what you found out I would like to take this back to the Electron issue and ask what is going on 🙏

Thanks a ton for developing the VS Code.
However, this white flash bug has created inconvenience to some of the people including me, having it while working daily with VS Code.

To come up with this workaround mentioned above, I experimented with some values which deals with electron window handler.

This white flash issue in windows electron apps comes from chromium and a fix is being discussed in the following:
(https://chromium-review.googlesource.com/c/chromium/src/+/6092335?tab=comments)
(https://issues.chromium.org/issues/41241478).

Suggestions from one of chromium dev was to add an acrylic/mica background before loading actual window.
Currently working command line that fixes white flash in Edge Stable release is "--enable-features=RemoveRedirectionBitmap".

From what I understood is if we can display a mica/acrylic background before actually displaying the loaded VS Code can replace this white window.

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.

White flash when opening a new window maximized or fullscreen
3 participants