You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Occurrence Highlighting does not kick in when using word navigation commands #113603
Move the cursor with arrow keys (no modifiers) onto a word then stop
Notice after a moment it will highlight other matches that are visible on screen (or in the whole file, with the scrollbar markers)
In particular, notice that if you stop on the edge of a word, it will still highlight it.
Now, move around with ctrl+left or ctrl+right. You will only be able to stop on word edges in this case.
Notice that in this case, no highlight happens, unlike when you land on a word edge by moving only with arrows.
Additionally, if you move the cursor more than one character in other ways (f.e. you use VS Code APIs to programmatically move the cursor), no highlight happens.
As an effect of this, plugins like Neo Vim (which move the cursor in custom ways) will not show any highlight when moving more than one character (or line) at a time.
Does this issue occur when all extensions are disabled?: Yes
In the following example recording, first I move character by character with the left and right arrows keys, and when I stop moving, you see that highlight works. In the last half of the recording I move with ctrl + arrow keys, in which case no highlight happens when I stop moving:
changed the title [-]Sometimes matching identifier highlight does not work[/-][+]Occurrence Highlighting does not kick in when using word navigation commands[/+]on Jan 4, 2021
Activity
trusktr commentedon Dec 30, 2020
In the following example recording, first I move character by character with the left and right arrows keys, and when I stop moving, you see that highlight works. In the last half of the recording I move with ctrl + arrow keys, in which case no highlight happens when I stop moving:
[-]Sometimes matching identifier highlight does not work[/-][+]Occurrence Highlighting does not kick in when using word navigation commands[/+]