Skip to content

Occurrence Highlighting does not kick in when using word navigation commands #113603

Closed

Description

@trusktr
Version: 1.48.2
Commit: a0479759d6e9ea56afa657e454193f72aef85bd0
Date: 2020-08-25T19:14:08.130Z
Electron: 7.1.14
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Linux x64 5.4.64-1-MANJARO

Steps to Reproduce:

  1. Move the cursor with arrow keys (no modifiers) onto a word then stop
  2. Notice after a moment it will highlight other matches that are visible on screen (or in the whole file, with the scrollbar markers)
  3. In particular, notice that if you stop on the edge of a word, it will still highlight it.
  4. Now, move around with ctrl+left or ctrl+right. You will only be able to stop on word edges in this case.
  5. Notice that in this case, no highlight happens, unlike when you land on a word edge by moving only with arrows.
  6. 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

Activity

  1. trusktr commented on Dec 30, 2020

    @trusktr
    Author

    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:

    highlight-only-with-single-char-move

  2. 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
  3. added
    bug
    on Jan 4, 2021
  4. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Jan 11, 2021
  5. locked and limited conversation to collaborators on Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

buginsiders-releasedverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions