VSCodeVim / VSCodeVim/Vim

Moving the cursor flashes the highlighted symbol

Open
#7,069 0 comments 0 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
Without the vim extension, if you have the text cursor over a variable name or function name, the symbol highlights automatically. If you move the cursor with the arrow keys and the cursor is still over the same symbol, it stays highlighted.

With the vim extension enabled, moving the cursor turns the highlight off until the cursor stop, then immediately turns on again after a small delay (I estimate 100 ms). This is rather annoying.

To Reproduce

  1. go with the cursor over a symbol. The word will highlight.
  2. press and release the left arrow key multiple times to move the cursor along the symbol. The highlight will turn off.
  3. stop pressing the left arrow and the symbol will highlight again.

Expected behavior
The extension should not change the behavior. the highlighted word should remain highlighted as long as the cursor is over it.

Screenshots
It requires a movie, but I think the description is clear.

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.12.7
  • VSCode version: 1.60.0
  • OS: macOs big sur

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 file or test is named. Reproduce the behavior in VSCode 1.60.0 with VsCodeVim 1.12.7 by moving through a highlighted symbol with the left arrow key, then trace the extension's cursor-movement and symbol-highlighting entry points. Done means the highlight remains visible while the cursor moves within the same symbol, without the brief delay.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
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.