Action gotoReference will move cursor to first line of other file.
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:
- move cursor to some word
- ctrl+shift+p, gotoReference
- select one not in cursor's 'file
- press enter
- 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

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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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