microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.38k stars 28.62k forks source link

mouse text selection cursor turned white on light themes #204103

Open ruffzzzy opened 7 months ago

ruffzzzy commented 7 months ago

Type: Bug

I use windows with dark theme and vs code with light theme, and mouse text selection cursor turned white so i barely can see it. Tried different light themes - all them have the issue i mentioned. Switching windows to light or vs code to dark theme can temporary solve it/

VS Code version: Code 1.86.0 (05047486b6df5eb8d44b2ecd70ea3bdf775fd937, 2024-01-31T10:28:19.990Z) OS version: Windows_NT x64 10.0.22631 Modes:

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 7 6800H with Radeon Graphics (16 x 3194)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|15.19GB (6.13GB free)| |Process Argv|--crash-reporter-id 944a687a-aab1-4e3c-9551-05aea9e1912f| |Screen Reader|no| |VM|0%|
Extensions (39) Extension|Author (truncated)|Version ---|---|--- Bookmarks|ale|13.4.2 laravel-extra-intellisense|ami|0.6.4 find-and-transform|Art|5.0.0 laravel-goto-view|cod|1.3.11 vs-treeview|DaG|2.7.0 composer-php-vscode|DEV|1.43.14858 phptools-vscode|DEV|1.43.14858 profiler-php-vscode|DEV|1.43.14858 gitlens|eam|14.7.0 vscode-html-css|ecm|2.0.9 EditorConfig|Edi|0.16.4 vsc-material-theme-icons|equ|3.4.0 figma-vscode-extension|fig|0.3.3 gitlab-workflow|Git|3.101.1 laravel-create-view|gli|0.0.6 laravel-blade-wrapper|IHu|1.0.1 php-symbols|lin|2.1.0 dotenv|mik|1.0.1 compare-folders|mos|0.24.2 vscode-docker|ms-|1.28.0 remote-containers|ms-|0.338.1 remote-ssh|ms-|0.108.0 remote-ssh-edit|ms-|0.86.0 remote-wsl|ms-|0.86.0 vscode-remote-extensionpack|ms-|0.25.0 remote-explorer|ms-|0.4.1 remote-server|ms-|1.5.0 laravel-goto-components|nao|1.2.0 laravel-blade|one|1.34.0 laravel-extension-pack|one|1.2.0 laravel5-snippets|one|1.17.0 laravel-jump-controller|pgl|0.0.33 vscode-yaml|red|1.14.0 laravel-artisan|rya|0.0.31 vscode-blade-formatter|shu|0.24.0 es6-string-html|Tob|2.14.1 twig|wha|1.0.2 php-debug|xde|1.34.0 php-intellisense|zob|1.3.3 (1 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805:30301674 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:30899288 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30951796 pythongtdpath:30769146 welcomedialog:30910333 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 pythontbext0:30879054 accentitlementsc:30887149 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 dsvsc019bcf:30953938 3ef8e399:30949928 ```
arpadgabor commented 7 months ago

Can confirm this issue. On light themes the text cursor turns white. A couple of clicks turns it back to black but it doesn't stay for long before turning white again.

wendelloliveiradev commented 7 months ago

Same issue here. Cursor keeps turning white on light themes. I'm using metherial theme light during the day for better visibility, although the cursor turns white and I can't see it, this is a terrible bug, that impact tremendously on productivity, if possible make this issue CRITICAL. Thanks!

edgar1506 commented 7 months ago

I have the same issue, it's a pain trying to figure out where the cursor is...

YSHebron commented 7 months ago

I also have the same issue. It's also happening in my browser

maartendekeizer commented 7 months ago

Same issue in multiple light teams, dark teams are not affected.

Kdcius commented 7 months ago

Same here, windows on dark mode, VSCode on light theme and the cursor stay white on the light background.

MFreit50 commented 6 months ago

Same issue, for some reason when moving around the vs code window the issue gets fixed temporarily. Seems like a graphics card issue

clorch commented 6 months ago

The same issue seems to be described in https://github.com/microsoft/vscode/issues/204181 and https://github.com/microsoft/vscode/issues/205512.

korkis commented 6 months ago

I changed from light theme to dark theme

alexdima commented 5 months ago

:wave: Would it please be possible to run https://github.com/microsoft/vscode-bisect to pinpoint the problematic commit range where this was introduced?

Dimava commented 5 months ago

👋 Would it please be possible to run https://github.com/microsoft/vscode-bisect to pinpoint the problematic commit range where this was introduced?

@alexdima it pointed me to https://github.com/microsoft/vscode/compare/9bbc169b624175bb432d439adea1bf4cbb7156bc...12fece34ed49c972d85b1a9ff0f5b8532eea569c

Run the following commands to continue bisecting via git in a folder where VS Code is checked out to:

git bisect start && git bisect bad 12fece34ed49c972d85b1a9ff0f5b8532eea569c && git bisect good 9bbc169b624175bb432d439adea1bf4cbb7156bc

I will bisect it further tomorrow if I get VSCode to run from sources

Dimava commented 5 months ago

Currently using code --disable_direct_composition=1 (provided at https://github.com/microsoft/vscode/issues/204181#issuecomment-1970267047 ) to mitigate the problem

sercanio commented 5 months ago

Same here with version 1.88.0

EmanH commented 4 months ago

Having the same issue. version 1.88.1

marensas999 commented 4 months ago

Same here. Very annoying.

CamiloMartinezM commented 4 months ago

Same here, cursor turns white (it doesn't dissapear, it's just white and it blends in) and moving and clicking around turns it black again.

Version: 1.89.0 (user setup) Commit: b58957e67ee1e712cebf466b995adf4c5307b2bd Date: 2024-05-01T02:09:22.859Z Electron: 28.2.8 ElectronBuildId: 27744544 Chromium: 120.0.6099.291 Node.js: 18.18.2 V8: 12.0.267.19-electron.0 OS: Windows_NT x64 10.0.22631

PablitoKarramba commented 4 months ago

Still happens on light mode. The mouse pointer blends into the background

BigWhiteDog commented 3 months ago

I found an interesting thing. I had this problem when using my mini desktop computer, which has an AMD 7840HS CPU. However, the mouse cursor problem will be fixed if I connect it to a USB4 External GPU dock with NVIDIA 1660s.

sclyonsburke commented 3 months ago

I am having this problem too and it is making it difficult to get work done

mbalc commented 3 months ago

as a workaround I had to change to some different light theme that doesn't use pure white as background (Horla Light Theme, although I don't like its lack of contrasts on sidebar)

please fix, this issue is critical

deepak1556 commented 3 months ago

To confirm, do users still encounter the issue with latest insiders https://code.visualstudio.com/insiders ? If so, are you able to mitigate the issue using the cli flag --disable_direct_composition=1

Dimava commented 3 months ago

To confirm, do users still encounter the issue with latest insiders https://code.visualstudio.com/insiders ? If so, are you able to mitigate the issue using the cli flag --disable_direct_composition=1

Just checked, I immediately get white cursor on plain shortcut and don't seem to ever get white cursor on --disable_direct_composition=1 shortcut

Version: 1.90.0-insider (user setup)
Commit: 50f2b2eca8d5c6e19ec95f9d46a59f623e60cac3
Date: 2024-05-28T05:47:25.268Z
Electron: 29.4.0
ElectronBuildId: 9593362
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Windows_NT x64 10.0.22631
tibitoth commented 3 months ago

what are the side effects of --disable_direct_composition=1?

dp-op commented 3 months ago

I'm having the same problem! Makes it quite difficult to continue working.

nathansavari commented 3 months ago

Same issue

FiSuESoPe commented 3 months ago

To confirm, do users still encounter the issue with latest insiders https://code.visualstudio.com/insiders ? If so, are you able to mitigate the issue using the cli flag --disable_direct_composition=1

The latest insider version fixed the issue for me. Using --disable_direct_composition=1 fixes it in the current stable release (1.89) for me.

arisudesu commented 3 months ago

Issue still present on insider version, flag --disable_direct_composition=1 fixes it.

Version: 1.91.0-insider
Commit: 51d598183ea632c658c34e0a11da5706192a1b69
Date: 2024-06-12T05:49:43.246Z
Electron: 29.4.0
ElectronBuildId: 9593362
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Windows_NT x64 10.0.19045
piec commented 3 months ago

Is this the same bug? https://issues.chromium.org/issues/40239916

I have indeed and AMD GPU.

Edit: a workaround seems to be to use mpo_disable.reg + reboot. I haven't tried it yet because I'm not on the right PC, I also don't know about the performance impact. Sources:

bvazx commented 2 months ago

I tried it. Indeed, it works. Some sources on the Internet write that the load on the processor may increase, but I didn’t really notice… Actually, I didn’t notice at all.

piec commented 2 months ago

Yes, it worked for me too and I didn't notice an impact

Th3S4mur41 commented 2 months ago

Same Problem here on a Surface Pro 7+ (Core i7 with Iris Xe) since yesterday. Not sure if it started with the last VS Code Update or the Update to Windows 11 24H2 🤔

Also not sure if this is related, but the problem also appeared in Edge Canary DevTools around the same time

Version: 1.90.2 (user setup)
Commit: 5437499feb04f7a586f677b155b039bc2b3669eb
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.26100
arisudesu commented 2 months ago

Re-tested on 1.91.0, no argv flags, with recently released AMD Adrenalin 24.6.1 drivers. Cursor is still either blinking or disappears. Sticking to the mpo_disable.reg fix for now.

Версия: 1.91.0 (system setup)
Фиксация: ea1445cc7016315d0f5728f8e8b12a45dc0a7286
Дата: 2024-07-01T18:52:22.949Z
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
ОС: Windows_NT x64 10.0.19045
Nirmal4G commented 2 months ago

Related #217357