Skip to content

Integrated powershell terminal keeps creating new lines after opened. #25875

Closed

Description

@DavidZHY

Type: Bug

Behaviour

After opened the integrated powershell terminal, it will keep creating new lines (just like keep pressing ENTER button on keyboard). It will not stop until trashing the terminal.
I don't really know if this is a bug or I misconfigured my computer. All I have found is that, switching off the terminal.integrated.shellIntegration.enabled setting will eliminate this issue. I did other attempts, this problem will not reproduce when python extension is not installed, or open powershell directly in OS.
Although terminal.integrated.shellIntegration.enabled is a Features->Terminal setting, with this setting on and python extension not installed, there was no such problem above. So I assumed this is a extension related problem, thus reported here.

Steps to reproduce:

  1. Make sure the terminal.integrated.shellIntegration.enabled setting is turned on.
  2. Open the integrated terminal.
  3. Create a new powershell window.
  4. Observe what is happening.

Diagnostic data

Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

There is no output for Python in the Output panel. I attached the terminal (the powershell window) output here instead. Screenshot is attached below

PS C:\Users\David\Desktop> 
PS C:\Users\David\Desktop> 
PS C:\Users\David\Desktop> 
PS C:\Users\David\Desktop> 
PS C:\Users\David\Desktop> 
PS C:\Users\David\Desktop> 
PS C:\Users\David\Desktop> 
PS C:\Users\David\Desktop> 
PS C:\Users\David\Desktop> 
PS C:\Users\David\Desktop>
... (more same lines)
Image

Extension version: 2026.4.0
VS Code version: Code 1.112.0 (07ff9d6178ede9a1bd12ad3399074d726ebe6e43, 2026-03-17T18:09:23Z)
OS version: Windows_NT x64 10.0.26200
Modes:

  • Python version (& distribution if applicable, e.g. Anaconda): 3.11.13
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Conda
  • Value of the python.languageServer setting: Default
User Settings


languageServer: "Pylance"

Installed Extensions
Extension Name Extension Id Version
autodocstring njp 0.6.1
copilot-chat Git 0.40.1
debugpy ms- 2025.18.0
even-better-toml tam 0.21.2
gitlens eam 17.11.1
js-debug ms- 1.112.0
js-debug-companion ms- 1.1.3
jupyter ms- 2025.10.2026030601
jupyter-keymap ms- 1.1.2
jupyter-renderers ms- 1.3.2025062701
python ms- 2026.4.0
remote-containers ms- 0.450.0
remote-explorer ms- 0.5.0
remote-server ms- 1.5.3
remote-ssh ms- 0.122.0
remote-ssh-edit ms- 0.87.0
remote-wsl ms- 0.104.3
vscode-containers ms- 2.4.1
vscode-docker ms- 2.0.0
vscode-js-profile-table ms- 1.0.10
vscode-jupyter-cell-tags ms- 0.1.9
vscode-jupyter-slideshow ms- 0.1.6
vscode-pylance ms- 2026.1.1
vscode-python-envs ms- 1.22.0
vscode-remote-extensionpack ms- 0.26.0
System Info
Item Value
CPUs 13th Gen Intel(R) Core(TM) i5-13500H (16 x 3187)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x8086, DEVICE=0xa7a0 [Intel(R) Iris(R) Xe Graphics], DRIVER_VENDOR=Intel, DRIVER_VERSION=32.0.101.5763 ACTIVE
GPU1: VENDOR= 0x10de, DEVICE=0x25ec [NVIDIA GeForce RTX 3050 6GB Laptop GPU], DRIVER_VERSION=32.0.15.9579
GPU2: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.7309
Machine model name:
Machine model version:
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 15.75GB (4.57GB free)
Process Argv C:\Users\David\Desktop\Image-Selector --crash-reporter-id 8d061824-a709-4824-bd92-a395939de8ac
Screen Reader no
VM 50%
A/B Experiments
vsliv368:30146709
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
4f60g487:31327383
6abeh943:31336334
envsdeactivate2:31464701
editstats-enabled:31346257
cloudbuttont:31379625
aihoversummaries_t:31469308
3efgi100_wstrepl:31403338
use-responses-api:31390855
anonusage:31403420
ddidt:31399633
je187915:31401254
ec5jj548:31422691
nes-callisto-dd-06:31480962
cp_cls_t_966_ss:31454198
4je02754:31466945
8hhj4413:31478653
ge8j1254_inline_auto_hint_haiku:31427726
38bie571_auto:31429954
preserve_tokens:31444546
cp_cls_t_1081:31454832
ia-use-proxy-models-svc:31452481
a43f0574a:31442826
e9c30283:31461165
test_treatment2:31471001
ts_provider_enabled:31458190
nes-conv-1-2:31477814
g_63ac8346:31467999
idci7584:31464702
edit_mode_hidden:31461530
e3e4d672:31461204
864ei723_large_tool_results_to_disk:31460878
showingstats:31471631
534a6447_copy:31478748
hg17d649:31458077
nes-extended-on:31455476
chat:31457767
8hig5102:31480529
ah:31460422
8a2c4887_5_3_codex_prompt:31475326
c-off:31481340
cpptoolsoff-v2:31475362
thinking_effort_m:31478171
editor1:31474144
db0gd219:31473911
ddid_t:31478206
getcmakediagnosticson:31480155

Activity

  1. gDub83 commented on Mar 23, 2026

    @gDub83

    I am also having the same issue.

  2. DavidZHY commented on Mar 24, 2026

    @DavidZHY
    Author

    I am also having the same issue.

    GDub (@gDub83) Hi, try to disable screen reader mode. And see if there's still a problem please.

  3. DavidZHY commented on Mar 24, 2026

    @DavidZHY
    Author

    Turning off the screen reader mode is useful. The powershell window will be normal if screen reader mode is turned off. Reference

  4. Osbrain1991 commented on Mar 28, 2026

    @Osbrain1991

    Turning off the screen reader mode is useful. The powershell window will be normal if screen reader mode is turned off. Reference

    Yes, this works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage-neededNeeds assignment to the proper sub-team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions