VSCodeVim / VSCodeVim/Vim

`workbench.action.gotoSymbol` doesn't move cursor

Open
#9,160 1 comment 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
After jumping to symbol via workbench.action.gotoSymbol VIM cursor remains at original position.

To Reproduce

  1. Jump to a symbol via workbench.action.gotoSymbol
  2. Press i to insert

Expected behavior
Should switch to Insert mode at symbol's position.

Observed behavior
Switches to Insert mode at original cursor position.

Environment (please complete the following information):

Extension (VsCodeVim) version: v1.27.3
Version: 1.91.1 (user setup)
Commit: f1e16e1e6214d7c44d078b1f0607b2388f29d729
Date: 2024-07-09T22:06:13.855Z
Electron: 29.4.0
ElectronBuildId: 9728852
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Windows_NT arm64 10.0.26100

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

Start by tracing the workbench.action.gotoSymbol command and how VSCodeVim observes cursor or selection changes. Reproduce the reported sequence, then verify that pressing i enters Insert mode at the selected symbol position rather than the original cursor position.

Written by the indexing model from the issue text.

Assessment

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