Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix updating relative number for sticky scroll #199101

Merged
merged 2 commits into from
Nov 29, 2023
Merged

Conversation

pimmee
Copy link
Contributor

@pimmee pimmee commented Nov 25, 2023

Fixes issue where line number is not updated properly when cursor changes and relative line numbers is activated. I.e. the following settings:

   "editor.stickyScroll.enabled": true,
   "editor.lineNumbers": "relative"

The default value of the rebuildFromLine argument is Infinity for the _renderStickyScroll function, changing it to -1 solves the problem and correctly updates relative lines for sticky scroll.

@aiday-mar
Copy link
Contributor

Hey thanks a lot for the PR and the good catch.

@pimmee
Copy link
Contributor Author

pimmee commented Nov 28, 2023

Hey thanks a lot for the PR and the good catch.

No worries. Anything else before merge?

@aiday-mar aiday-mar merged commit 25b58ba into microsoft:main Nov 29, 2023
6 checks passed
@aiday-mar
Copy link
Contributor

No it's all good, we merged the PR, thanks

@github-actions github-actions bot locked and limited conversation to collaborators Jan 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants