VSCodeVim / VSCodeVim/Vim

Issue with jsx tags

Open
#5,923 3 comments 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

Describe the bug
When I write jsx tag for instance Paragraph and press Tab vim switches to visual mode and shifts cursor on few symbols back.
But everything works fine with html tags and emmet.

To Reproduce
Steps to reproduce the behavior:

  1. Write Paragraph in any .js .tsx document
  2. Press Tab button
  3. Look on caret position and vim mode.

Expected behavior
Expect to see caret between opened and closed JSX tag and insert vim mode.

Screenshots
image
And if press 'c' in visual mode it switches to insert mode but also removes part of opened jsx tag.
https://www.screencast.com/t/6L57LL5foH

Environment:

  • Extension (VsCodeVim) version: v1.18.5
  • VSCode version: 1.52.1
  • OS: Windows_NT x64 10.0.19041

Additional context
Also have same issue with snippets described here
https://github.com/VSCodeVim/Vim/issues/5463

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 VSCodeVim with a .js or .tsx document, typing a JSX tag such as Paragraph and pressing Tab. Compare the JSX behavior with HTML and Emmet, and review issue 5463 for related snippet handling. Done means Tab leaves the caret between the JSX tags in insert mode without altering the tag.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.