microsoft / microsoft/TypeScript
Mirror cursor for JSX stops working in some case
Open
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:
- Typing
const a = () => <A.B foo="bar"></A.B> - Remove
Bcharacter (it will be removed from both side) - Write any characters (It stop writing on both side)
https://github.com/microsoft/vscode/assets/27840664/1fa79f18-23e2-405c-afa5-cb6bd8663830
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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