Type: Bug
Behavior
When running code that print a huge str with F5 or ctrl+F5, the output gets truncated.
This does not happen if I run the code by python <filename> in the same console.
Steps to reproduce:
- make
a.py with the following code:
print(" ".join(map(str, range(5000))))
- run
a.py by F5 or ctrl+F5
The last number in the output is 2610. This number varies depending on the argument of range.
Diagnostic data
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
Extension version: 2026.0.0
VS Code version: Code 1.109.0 (bdd88df003631aaa0bcbe057cb0a940b80a476fa, 2026-02-04T02:01:38.288Z)
OS version: Windows_NT x64 10.0.26100
Modes: Unsupported
- Python version (& distribution if applicable, e.g. Anaconda): 3.12.7
- Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): System
- Value of the
python.languageServer setting: Pylance
User Settings
languageServer: "Pylance"
terminal
• activateEnvironment: false
Installed Extensions
| Extension Name |
Extension Id |
Version |
| autodocstring |
njp |
0.6.1 |
| cpptools |
ms- |
1.30.5 |
| debugpy |
ms- |
2025.18.0 |
| even-better-toml |
tam |
0.21.2 |
| githistory |
don |
0.6.20 |
| js-debug |
ms- |
1.105.0 |
| js-debug-companion |
ms- |
1.1.3 |
| powershell |
ms- |
2025.4.0 |
| python |
ms- |
2026.0.0 |
| remote-wsl |
ms- |
0.104.3 |
| ruff |
cha |
2026.36.0 |
| vscode-autohotkey-plus-plus |
mar |
6.7.3 |
| vscode-fileutils |
sle |
3.10.3 |
| vscode-js-profile-table |
ms- |
1.0.10 |
| vscode-pylance |
ms- |
2025.10.4 |
| vscode-quick-select |
dba |
0.2.9 |
| vscode-xml |
red |
0.29.0 |
A/B Experiments
vsliv368cf:30146710
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31436602
aj953862:31281341
6abeh943:31336334
envsactivate1:31353494
cloudbuttont:31379625
3efgi100_wstrepl:31403338
use-responses-api:31390855
ec5jj548:31422691
cp_cls_t_966_ss:31454198
c0683394:31458171
a5gib710:31434435
7a04d226_do_not_restore_last_panel_session:31438103
anthropic_thinking_c:31457102
406hc587_ask_agent:31428393
cp_cls_c_1081:31454833
nes-set-to-on:31441941
a43f0576c:31442824
e9c30283:31460036
edit_mode_visible:31459180
864ei723_large_tool_results_to_disk:31458758
anthropic_tst_c:31457103
chat:31457767
Type: Bug
Behavior
When running code that
printa huge str with F5 or ctrl+F5, the output gets truncated.This does not happen if I run the code by
python <filename>in the same console.Steps to reproduce:
a.pywith the following code:a.pyby F5 or ctrl+F5The last number in the output is 2610. This number varies depending on the argument of
range.Diagnostic data
Output for
Pythonin theOutputpanel (View→Output, change the drop-down the upper-right of theOutputpanel toPython)Extension version: 2026.0.0
VS Code version: Code 1.109.0 (bdd88df003631aaa0bcbe057cb0a940b80a476fa, 2026-02-04T02:01:38.288Z)
OS version: Windows_NT x64 10.0.26100
Modes: Unsupported
python.languageServersetting: PylanceUser Settings
Installed Extensions
A/B Experiments