VSCodeVim / VSCodeVim/Vim

Html tag mirror causes issues with visual line select.

Open
#4,378 9 comments 16 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/multicursor kind/bug
Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Html tag mirror causes issues with visual line select etc.

To Reproduce
Steps to reproduce the behavior:

  1. Place cursor in html tag, press shift v and both the top/bottom html tags are selected

Expected behavior
When I tried to visually select some text to grab it and copy somewhere else, the second cursor on the top tag will select everything I don't want, unrelated to what I intended to select.

  • Extension (VsCodeVim) version: 1.12.2
  • VSCode version: 1.41.0
  • OS: Win 10

Temporary fix
html.mirrorCursorOnMatchingTag = false

I don't have a lot of time right now, if this needs more clarification let me know.

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 1.12.2 on VS Code 1.41.0 by placing the cursor in an HTML tag and pressing Shift+V, then compare the result with html.mirrorCursorOnMatchingTag disabled. Done means visual line selection no longer includes the matching HTML tag's mirrored cursor or unrelated text.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
tooling
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.