Relative line numbers don't work properly with sticky scroll
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
When "sticky scroll" is enabled in VSCode, the relative line number in the sticky line is not always correct
To Reproduce
Steps to reproduce the behavior:
- Enable relative or smart line numbers in VSCodeVim
- Enable sticky scroll in vscode settings
- Open any file where the sticky scroll header appears
- Press
ja couple times - The relative line number in the sticky header remains the same
Expected behavior
As you scroll down, the relative line number in the sticky line changes
Environment (please complete the following information):
- Extension (VsCodeVim) version: v1.25.2
- VSCode version: v1.78.2
- OS: Fedora 38
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 issue by enabling relative or smart line numbers and VSCode sticky scroll, then opening a file with a sticky header and pressing j. Start by tracing how relative line numbers are updated for the sticky line. Done means the number changes as the cursor scrolls down, matching the expected relative position.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100