-
Notifications
You must be signed in to change notification settings - Fork 37.1k
Closed
Labels
terminal-conptyIntegrated terminal issues related to the ConPTY backendIntegrated terminal issues related to the ConPTY backendupstreamIssue identified as 'upstream' component related (exists outside of VS Code)Issue identified as 'upstream' component related (exists outside of VS Code)windowsVS Code on Windows issuesVS Code on Windows issues
Description
Bug Description
When resizing the integrated terminal panel in VS Code (by dragging the top edge up/down), log output from running scripts appears to be re-printed or duplicated unexpectedly.
However, if the user simply clicks the small “Restore Panel Size” arrow (in the top-right of the terminal), the issue does not occur — output remains clean.
This suggests the terminal is re-flushing buffer or misrendering logs during manual resize operations.
Steps to Reproduce
- Open any workspace with an integrated terminal
- Run the following long-running script:
import time for i in range(10): print(f"Log entry: {i}") time.sleep(1)
- While the script is running, drag the terminal panel height up and down
- Observe that lines repeat or redraw multiple times
🔁 Now try this instead:
- Click the “Restore Panel Size” arrow button in the terminal header
- The logs do not repeat, and output stays clean
Expected Behavior
- Resizing terminal should not cause duplicate output
- Log output should be flushed only once per execution
Actual Behavior
- Output appears to repeat or re-render when resizing panel
- Clicking “Restore Panel Size” avoids the issue
Environment
- VS Code Version: 1.88.x (or latest)
- OS: Windows 10/11
- Shells Tested: PowerShell, CMD
- Extensions: Tested with all disabled
- Python Version: [your Python version here]
Impact
This issue makes terminal logs noisy, especially during background script execution, and can be misleading during debugging or output analysis.
Please investigate this UI interaction and its effect on stdout handling during terminal redraws.
Metadata
Metadata
Assignees
Labels
terminal-conptyIntegrated terminal issues related to the ConPTY backendIntegrated terminal issues related to the ConPTY backendupstreamIssue identified as 'upstream' component related (exists outside of VS Code)Issue identified as 'upstream' component related (exists outside of VS Code)windowsVS Code on Windows issuesVS Code on Windows issues