VSCodeVim / VSCodeVim/Vim

Multiple Cursor bug in html file

Open
#4,439 7 comments 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Describe the bug
In the latest vscode (1.41) the vscode team release a new feature called html mirror cursor now when i open a html file and go to a tag in normal mode it also select its closing tag in multi cursor mode but when i move my cursor it does not close the multi cursor mode

To Reproduce
create a simple html file with some tag like

<form>
<input type='text'>
<input type='text'>
</form>

move your cursor in normal mode to opening form tag you see that closing form tag also get selected now move your cursor into next line in input you see that form tag is still selected

Expected behavior
the multi cursor should be closed when i am not in html tag

Environment (please complete the following information):

  • Extension (VsCodeVim) version:1.12.4
  • VSCode version: 1.41
  • OS: elementry os 5 (juno)

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 behavior in VS Code 1.41 using the HTML sample and the reported VSCodeVim version. Start by tracing the extension's handling of HTML mirror cursors and cursor movement; done means the paired closing tag selection is cleared when the cursor moves into a non-tag line.

Written by the indexing model from the issue text.

Assessment

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