Unexpected Behavior of `dit` in JSX
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
BUG REPORT
What happened:
With react component
<button className="square" onClick={() => props.onClick()}>
{props.value}
</button>
dit
<button className="square" onClick={() =></button>
What did you expect to happen:
<button className="square" onClick={() => props.onClick()}>
</button>
How to reproduce it (as minimally and precisely as possible):
Environment:
- Extension (VsCodeVim) version: 0.10.9
- VSCode version: 1.19.1
- OS version: Windows 7
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
No source files, tests, or entry points are named. Start by reproducing the dit edit in the JSX button example on the reported VSCodeVim and VSCode versions; done means the inner text is removed while the opening tag remains intact with its full onClick expression.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100