Cursor color using light themes
Type: Bug
When switching to a light theme in VS Code, the text cursor (e.g., |) remains white, as if the dark theme is still active. The issue is inconsistent: in some cases, clicking on text causes the cursor to turn black.
1.Open VS Code and apply a light theme, when a dark theme was previously active.
-
Open a file with text content.
-
Observe the text cursor (|). It appears white instead of black, making it very hard to see against the light background.
-
Click around the text editor. Occasionally, the cursor turns black.
Expected Behavior The text cursor should consistently appear in a color that contrasts with the light theme.
Actual Behavior The text cursor remains white.
VS Code version: Code 1.97.2 (e54c774e0add60467559eb0d1e229c6452cf8447, 2025-02-12T23:20:35.343Z) OS version: Windows_NT x64 10.0.26100 Modes:
System Info
| Item | Value |
|---|---|
| CPUs | AMD Ryzen 5 7520U with Radeon Graphics (8 x 2795) |
| 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 webnn: disabled_off |
| Load (avg) | undefined |
| Memory (System) | 7.24GB (1.21GB free) |
| Process Argv | --crash-reporter-id 8dca63a9-88e5-4105-8ecc-c9191503e09e |
| Screen Reader | no |
| VM | 0% |
Extensions (13)
| Extension | Author (truncated) | Version |
|---|---|---|
| es7-react-js-snippets | dsz | 4.4.3 |
| csdevkit | ms- | 1.16.6 |
| csharp | ms- | 2.63.32 |
| vscode-dotnet-runtime | ms- | 2.2.8 |
| java | red | 1.40.0 |
| intellicode-api-usage-examples | Vis | 0.2.9 |
| vscodeintellicode | Vis | 1.3.2 |
| vscode-gradle | vsc | 3.16.4 |
| vscode-java-debug | vsc | 0.58.1 |
| vscode-java-dependency | vsc | 0.24.1 |
| vscode-java-pack | vsc | 0.29.0 |
| vscode-java-test | vsc | 0.43.0 |
| vscode-maven | vsc | 0.44.0 |
(3 theme extensions excluded)
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vscod805:30301674
binariesv615:30325510
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dwnewjupyter:31046869
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc1:31192215
iacca1:31171482
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
8did9651:31230678
9064b325:31222308
copilot_t_ci:31222730
f5992895:31254866
jda6j935:31233686
5b33h341:31253271