Skip to content

Sticky Scroll does not update when line numbers display mode is changed #210814

@timorthi

Description

@timorthi

Does this issue occur when all extensions are disabled?: Yes

Version: 1.89.0
Commit: Unknown
Date: Unknown
Electron: 28.2.8
ElectronBuildId: undefined
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Linux x64 5.15.146.1-microsoft-standard-WSL2

Steps to Reproduce:

  1. Enable sticky scroll and set line numbers to 'on'
  2. Navigate to a code block that triggers one or more sticky lines
  3. Change the line display mode to relative
  4. Observe that the sticky line numbers do not update
  5. Bonus: Specifically when switching from non-relative to relative line numbers, the sticky lines do not correctly display the relative line numbers (per Sticky scroll number not updating #195711) as you move the cursor up and down.

This is particularly annoying when using vscode-vim with smart relative lines enabled, which toggles between absolute and relative lines depending on whether you are in insert or normal mode.

Video of repro:

repro.mp4

Metadata

Metadata

Assignees

Labels

insiders-releasedPatch has been released in VS Code Insiders

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions