Skip to content

Fix incorrect visual selection highlight in Output Panel#286972

Merged
sandy081 merged 4 commits intomicrosoft:mainfrom
kiofaw:fix/output-panel-selection-mismatch
Jan 13, 2026
Merged

Fix incorrect visual selection highlight in Output Panel#286972
sandy081 merged 4 commits intomicrosoft:mainfrom
kiofaw:fix/output-panel-selection-mismatch

Conversation

@kiofaw
Copy link
Copy Markdown
Contributor

@kiofaw kiofaw commented Jan 11, 2026

Summary

fix: #287531
This PR fixes an issue where selecting multiple lines in the Output Panel causes the visual selection highlight to extend beyond the actual text range (typically showing about 2 extra characters at the start/end of lines).
While the visual highlight was incorrect, the actual text copied to the clipboard remained accurate.

Actual (Before)

actual.mp4

Expected (After)

expected.mp4

Fix

Disabled roundedSelection in OutputEditor configuration. This forces the selection to use standard rectangular rendering, which is 100% accurate to the underlying text model.

@sandy081 sandy081 added this to the January 2026 milestone Jan 13, 2026
@sandy081 sandy081 enabled auto-merge (squash) January 13, 2026 13:41
@sandy081 sandy081 merged commit 6dad410 into microsoft:main Jan 13, 2026
17 checks passed
eli-w-king pushed a commit that referenced this pull request Jan 14, 2026
fix: disable roundedSelection in output panel to avoid selection highlight mismatch
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Mar 3, 2026
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.

3 participants