VSCodeVim / VSCodeVim/Vim

Action gotoReference will move cursor to first line of other file.

Open
#8,538 0 comments 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
gotoReference action will let cursor jump to wrong place.

To Reproduce
Steps to reproduce the behavior:

  1. move cursor to some word
  2. ctrl+shift+p, gotoReference
  3. select one not in cursor's 'file
  4. press enter
  5. cursor will go to reference file's first line, should goback then can go to the real reference

Expected behavior
cursor jump to right place

Screenshots
screenshot

Environment (please complete the following information):
os: win10 22H2 19045.3208
vscode: 1.81.1
vscodevim: 1.25.2

Additional context
i only use one plugin vim , and if i disable vim, cursor will jump right, so i think it is vscodevim's bug , not other plugins

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 problem using the gotoReference action with VSCodeVim enabled and disabled, following the five steps in the issue. Trace the gotoReference entry point and compare the cursor location after selecting a reference in another file; done means the cursor reaches the selected reference rather than the first line.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
developer-experience, 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.