Skip to content

Caret jumps to column 0 when clicking between first two characters #263098

@alexchexes

Description

@alexchexes

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

Clicking between the first and second characters in a line places the caret at column 0 instead of between the characters. Please see the screencast.

PowerToys_2025-08-23--20-06-58--706.mp4

Steps to Reproduce:

  1. Open a new file and type: let x
  2. Click between l and e in let
  3. Observe the caret position

Expected:
Caret is placed between l and e (column 1).

Actual:
Caret is placed before l (column 0).

Notes:

  • Only the first column is affected. Other positions (e.g., between e and t) work correctly.
  • Reproduces in both Stable and the latest Insiders version, checked with a clean installation / logged-out.
  • The screencast uses increased UI scale for visibility, but the issue also occurs with the default VSCode and Windows display scaling.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugeditor-inputEditor text inputregressionSomething that used to work is now brokenverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions