microsoft / microsoft/TypeScript

Mirror cursor for JSX stops working in some case

Open
#56,669 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Domain: JSX/TSX Help Wanted Needs Human Review
Dominant language
Go
Stars
111k
Forks
14.4k
Avg merge
1d 19h
Merged PRs (30d)
117

Description

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

  • VS Code Version: 1.82.2
  • OS Version: windows 11

Steps to Reproduce:

  1. Typing const a = () => <A.B foo="bar"></A.B>
  2. Remove B character (it will be removed from both side)
  3. Write any characters (It stop writing on both side)

https://github.com/microsoft/vscode/assets/27840664/1fa79f18-23e2-405c-afa5-cb6bd8663830

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue in VS Code 1.82.2 on Windows 11 with extensions disabled, using the reported JSX snippet and deletion step. Trace the editor or language-service path responsible for JSX mirror-cursor updates; the fix is complete when typing continues on both sides after removing B from A.B.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.