Skip to content

Comments

[pull] main from microsoft:main#956

Merged
pull[bot] merged 17 commits intocode:mainfrom
microsoft:main
Feb 21, 2026
Merged

[pull] main from microsoft:main#956
pull[bot] merged 17 commits intocode:mainfrom
microsoft:main

Conversation

@pull
Copy link

@pull pull bot commented Feb 21, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

alexdima and others added 17 commits February 21, 2026 09:13
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
… areas

When an edit (delete/undo) removes or merges the only visible line(s) into
hidden lines, the view model could end up with zero visible lines, causing
downstream crashes (e.g. 'Not supported' from HiddenModelLineProjection).

The safety check in acceptVersionId only caught the case where exactly 1
hidden line remained. Generalize it to detect when getViewLineCount() === 0
and minimally restore visibility by making just the first line visible,
preserving the caller's intended hidden areas as much as possible.
When hidden area decorations drift via AlwaysGrowsWhenTypingAtEdges
stickiness, _constructLines(resetHiddenAreas=false) — triggered by
tab size or wrapping changes — can rebuild projections with all lines
hidden.

Extract _ensureAtLeastOneVisibleLine() shared by both _constructLines
and acceptVersionId.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* add logging

* feedback
Fix ViewModel issue where all lines were hidden
@pull pull bot locked and limited conversation to collaborators Feb 21, 2026
@pull pull bot added the ⤵️ pull label Feb 21, 2026
@pull pull bot merged commit 9c99e8f into code:main Feb 21, 2026
3 of 4 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants