VSCodeVim / VSCodeVim/Vim

Can't jump to matching html tag in .jsx when in visual line mode

Open
#4,917 8 comments 8 reactions 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
In Visual Line Mode one can't jump to tag

To Reproduce
Steps to reproduce the behavior:

  1. Go to start of tag in jsx file
  2. Go into Visual Line mode (Shift+V)
  3. Type % (or alternatively open command menu for 'emmet matching pair' or any of the available pair options)
  4. Cursor will not jump to ending tag

Expected behavior
In Visual Line Mode I expect it to jump to ending tag

Screenshots

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.14.5
  • VSCode version: 1.45.1
  • OS: Darwin x64 19.4.0

Additional context
This issue only occurs in Visual Line mode, it seems to work fine in other modes. My goal is to Visual Select and then hop to the close tag all fully selected with the tag included

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 file or test is named. Reproduce this in a JSX file by entering Visual Line mode and using % or the matching-pair command, then trace the matching-pair path; done means the cursor reaches the closing tag in Visual Line mode without regressing other modes.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.