-
Notifications
You must be signed in to change notification settings - Fork 31k
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
Editor Jumps When Code Lenses Are Inserted #216824
Comments
No changes for code lens since long. Doesn't reproduce for me. Can yo consistently repro? Can you try without custom settings? Screen.Recording.2024-06-21.at.18.14.03.mov |
@hediet The current logic is to keep the first line in the viewport stable. A good improvement might be to keep the line where the cursor is stable (if it's in the viewport), but that is not what we have implemented. PR welcome. |
Oh, somehow I didn't realizing the jumping then.
Did you open this file before in the VS Code session? |
Between reloads the slots are persisted and optimistically shown for a couple of seconds so that the actual extension/provider can compute theirs (which is usually the same) |
I think there is something fishy going on with persisting the code lens cache (#221005). |
Issue marked as unreleased but unable to locate closing commit in repo history. If this was closed in a separate repo you can add the |
|
Revert "Fixes microsoft#216824" This reverts commit f46e922.
I think the editor used to preserve the vertical position of the line where the the cursor is in.

It jumps now:
Repro steps:
Verification steps:
If I don't misremember, there was a change made here recently?
The text was updated successfully, but these errors were encountered: