VSCodeVim / VSCodeVim/Vim

Relative line numbers don't work properly with sticky scroll

Open
#8,478 1 comment 2 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
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:

  1. Enable relative or smart line numbers in VSCodeVim
  2. Enable sticky scroll in vscode settings
  3. Open any file where the sticky scroll header appears
  4. Press j a couple times
  5. 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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.