vscode: Last line of multiline strings in debug console not shown
To Reproduce Steps to reproduce the behavior:
- Start a debug session and open the debug console
- Type
"one\ntwo\nthree"
and press enter - Observe the echoed output is
'one two

Log File
VS Code Version:
Version: 1.63.0-insider Commit: d450b04c783dfa6f83dc439017767acccd4e9fac Date: 2021-11-17T07:45:14.150Z (2 days ago) Electron: 13.5.2 Chromium: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Darwin x64 21.1.0
Node used in debug session: 16.13.0.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 2
- Comments: 21 (21 by maintainers)
Commits related to this issue
- Fix multiline strings not rendered correctly in console when wordwrap disabled Fix #151768 — committed to microsoft/vscode by roblourens 2 years ago
- Fix multiline strings not rendered correctly in console when wordwrap disabled (#160622) Fix #151768 — committed to microsoft/vscode by roblourens 2 years ago
- Fix output sizing for multiline evaluation resul Fix #151768 — committed to microsoft/vscode by roblourens 2 years ago
- Fix output sizing for multiline evaluation result (#162101) Fix output sizing for multiline evaluation resul Fix #151768 — committed to microsoft/vscode by roblourens 2 years ago
I can repro it now, thanks!
There are a few elements with their
style.height
set to an explicit pixel value. If I bump up those values, the result is no longer clipped. So it’s not just a style issue per se, but more likely, something is not communicating the correct number of lines to the renderer.