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

When VSCode receives focus from another window, the cursor in the editor area is white/invisible on a light theme for period of time #216689

Open
BladeMF opened this issue Jun 20, 2024 · 7 comments

Comments

@BladeMF
Copy link

BladeMF commented Jun 20, 2024

Does this issue occur when all extensions are disabled?: Yes.

Version: 1.90.2 (user setup)
Commit: 5437499
Date: 2024-06-18T22:34:26.404Z
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Windows_NT x64 10.0.22631

Steps to Reproduce:

  1. Open VSCode with Light theme and open a blank file, place cursor in file
  2. Make sure left/right pane is open (with Explorer and other tool windows)
  3. Focus another window
  4. Return to VSCode

Now the cursor is white. You need to wait a couple of seconds for the color to change. Subsequent repetitions may result in faster or slower time until color is black again. In normal working conditions practically every alt-tab results in 3-4 seconds of "where is my cursor".

@BladeMF
Copy link
Author

BladeMF commented Jun 25, 2024

It definitely has something to do with the terminal. At one point, after working whole day, if the terminal is open the cursor in the editor area is permanently white. If I switch to Explorer (which is together with the Terminal in the sidebar), then it becomes black. If I turn off the whole sidebar, it becomes black.

@BladeMF
Copy link
Author

BladeMF commented Jun 28, 2024

Right, the colour scheme of the terminal does not seem to affect this. I tried removing my integrated terminal colour customisations so it was just as the theme defined it and the cursor still becomes white for a second when alt-tabbing.

@BladeMF
Copy link
Author

BladeMF commented Jun 28, 2024

If in the primary tab is displayed the "Output" pane, then if I click consecutively between the editor and the Output pane, the cursor becomes white when I click and then black a second later. That happens in either of them without the main window losing focus.

Also, if for some reason the cursor becomes stuck being white, closing the sidebar changes the colour.

@meganrogge
Copy link
Contributor

Can you pls provide a gif?

@meganrogge meganrogge added the info-needed Issue requires more information from poster label Jul 8, 2024
@BladeMF
Copy link
Author

BladeMF commented Jul 8, 2024

Sure. I hope I'll get the time to do it today.

@BladeMF
Copy link
Author

BladeMF commented Jul 8, 2024

I kid you not, this does not happen when any screen recorder is running. I tried the built in and OBS. Here is what the test is, you can repeat it. It happens every time with me - every 1-3 clicks the cursor becomes white for a while. It's not a gif, but I can't get Clipchamp to start so I can't edit it.

Screen.Recording.2024-07-08.201302.mp4

@BladeMF
Copy link
Author

BladeMF commented Jul 8, 2024

The theme is "Light+" on both.

@meganrogge meganrogge added confirmation-pending and removed info-needed Issue requires more information from poster labels Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants