You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Editor Jumps When Code Lenses Are Inserted #216824
Henning Dieterichs (@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.
No changes for code lens since long. Doesn't reproduce for me. Can yo consistently repro? Can you try without custom settings?
Did you open this file before in the VS Code session?
In the first frame of your screenrecording where editorBrowser.ts shows, the code lens feature already reserved some (empty) space to prevent layout shifts (which I don't think the feature knows the first time the text model is opened):
the code lens feature already reserved some (empty) space to prevent layout shifts (which I don't think the feature knows the first time the text model is opened):
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)
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 insiders-released label directly, or comment \closedWith someShaThatWillbeReleasedWhenThisIsRelesed.
Issue marked as unreleased but unable to locate closing commit in issue timeline. You can manually reference a commit by commenting `\closedWith someCommitSha`, or directly add the `insiders-released` label if you know this has already been releaased
Activity
jrieken commentedon Jun 21, 2024
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
alexdima commentedon Jun 24, 2024
Henning Dieterichs (@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.
hediet commentedon Jun 25, 2024
Oh, somehow I didn't realizing the jumping then.
Did you open this file before in the VS Code session?
In the first frame of your screenrecording where
editorBrowser.tsshows, the code lens feature already reserved some (empty) space to prevent layout shifts (which I don't think the feature knows the first time the text model is opened):jrieken commentedon Jun 25, 2024
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)
hediet commentedon Jul 8, 2024
I think there is something fishy going on with persisting the code lens cache (#221005).
25 remaining items
Revert StableEditorScroll changes (microsoft#224289)
vs-code-engineering commentedon Jul 31, 2024
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
insiders-releasedlabel directly, or comment\closedWith someShaThatWillbeReleasedWhenThisIsRelesed.vs-code-engineering commentedon Jul 31, 2024
hediet commentedon Aug 6, 2024
Closing in favor of #224822 (which proposes one possible solution to this).
To be honest though, I think #221005 is what caused my feeling of this happening much more often.
Revert StableEditorScroll changes (microsoft#224290)