VSCodeVim / VSCodeVim/Vim

"go to definition", etc go to the right line, but wrong column

Open
#3,102 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted kind/bug
Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Describe the bug
using "go to definition" doesn't seem to update the column - it keeps the previous column.

To Reproduce
Steps to reproduce the behavior:

  1. Click on a function call
  2. Right-click
  3. "go to definition"
  4. Notice the column LOOKS correct
  5. Move cursor using hjkl
  6. Notice the cursor column jumps to where you were before the "go-to-definition", but on the correct line.

Expected behavior
The column is in-sync just like the row

Screenshots

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 0.16.6
  • VSCode version: 1.27.2
  • OS: Linux - Kubuntu current LTS

Additional context
None

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

Reproduce the issue in VSCodeVim by following the listed go-to-definition steps, then trace the extension's definition-navigation handling. The fix is complete when moving with hjkl preserves the destination column instead of restoring the previous one; the payload does not name a file or test to start from.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
developer-experience
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.