VSCodeVim / VSCodeVim/Vim

Press `%` for matching does not work or goes to wrong locations

Open
#651 11 comments 12 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Please thumbs-up 👍 this issue if it personally affects you! You can do this by clicking on the emoji-face on the top right of this post. Issues with more thumbs-up will be prioritized.


What did you do?

Open this file https://github.com/telerik/kendo-ui-core/blob/master/src/kendo.color.js in visual studio code and switch to NORMAL MODE, go to last line which begins with "}, typeof define == 'function' && define.amd", move cursor to col 1, that's should be under '}', now press %.

What did you expect to happen?

The cursor should go to '{' in line 3.

What happened instead?

Nothing happens.
Many times, press % will cause the cursor go to wrong places.

Technical details:
  • VSCode Version: 1.3 /1.4
  • VsCodeVim Version: [please ensure you are on the latest] 0.1.7
  • OS: win7, 64bit

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 the linked kendo.color.js file using NORMAL MODE and the reported VSCode 1.3/1.4 and VsCodeVim 0.1.7 details. Start by tracing the % motion behavior for the final line and verify whether the cursor reaches the opening brace on line 3; done means matching works there and does not jump to unrelated locations.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.