VSCodeVim / VSCodeVim/Vim

Unexpected Behavior of `dit` in JSX

Open
#2,284 1 comment 1 reaction 0 assignees View on GitHub

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.