Skip to content

Jumping to Previous Position After Pressing a Key #9195

Open
@zshaian

Description

@zshaian

Describe the bug
When searching for a symbol in VS Code, after finding the symbol and navigating to it, pressing any key on the keyboard causes the cursor to jump back to its previous position.

To Reproduce
Steps to reproduce the behavior:

  1. Toggle the search symbol in VS code ( Ctrl + Shift + o ) or (Ctrl + p ) and then type "@"
  2. start searching for a symbol that you want to go to
  3. click the symbol or press enter
  4. start pressing any key

Expected behavior
After navigating to the symbol I want to go to, the cursor should not jump back to its previous position after pressing any key.

Environment

  • Extension (VsCodeVim) version: v1.27.3
  • VSCode version: 1.92.1
  • OS: Windows 10 ( Windows_NT x64 10.0.19045)

Additional context
This issue is not limited to searching for a symbol. If I also search for a word by pressing (Ctrl + F) and then navigate to that word, pressing any key causes the cursor to jump back to its previous position. This bug does not always occur, sometimes it doesn’t happen, and I’m still unsure what triggers it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions