microsoft / microsoft/vscode

Pasting text and moving cursor has huge delays in git bash terminal

Open
#336,429 3 comments 0 reactions 1 assignee Claimed by @anthonykim1 View on GitHub
author-verification-requested perf terminal upstream
Dominant language
TypeScript
Stars
193k
Forks
42.4k
PR merge metrics
PR metrics pending

Description

Type: Bug

For example pasting this command takes 64 seconds. The duration seems to scale quadratically with the length.
```sh
git commit -m "aeadkfea jf auhofiua efhawef ofauwbv ubvuqwzbvubv uzb vuqz quzb u iwubvqwuibfqowb qub qeov qeuub fqi owebfiqbfqouieb qeuwbf qe buqiwfqiwufquiwbefquiwbefu q wifqiwbefqbf qfiqwu qiwebfqiwebfquiwebfq wfqiwe fqweif bf aerhgerg erg erg eirgebgs
```
|Length|Time|
|------|---|
|32|2 s|
|64|4 s|
|128|17 s|
|256|64 s|

Moving the cursor with the arrow keys is also really slow if the current input is longish.
In the video I'm just holding down the left arrow key for a few seconds, but the cursor keeps moving much longer and very slowly.

https://github.com/user-attachments/assets/55b9a0c2-deb3-4e4f-ac66-d6c8a89b0038

The process using up all the CPU is bash.exe, but it is not a problem when it is used standalone.

VS Code version: Code - Insiders 1.139.0-insider (c74ba73b780a4a33173c006e52560d61432f53d6, 2026-09-16T04:43:54Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info

|Item|Value|
|---|---|
|CPUs|Intel(R) Xeon(R) CPU E5-1620 v2 @ 3.70GHz (8 x 3691)|
|GPU Status|2d_canvas: enabled
GPU0: VENDOR= 0x10de, DEVICE=0x11fa [NVIDIA Quadro K4000], DRIVER_VENDOR=NVIDIA, DRIVER_VERSION=10.18.13.5362 *ACTIVE*
GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.19041.5794
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: unavailable_off
webgl: enabled
webgpu: enabled
webnn: disabled_off|
|Load (avg)|undefined|
|Memory (System)|31.95GB (3.76GB free)|
|Process Argv|--crash-reporter-id 59c38a97-6b20-42ad-b729-8c40ade347e9|
|Screen Reader|no|
|VM|0%|
Extensions: none
A/B Experiments

```
vsliv368:30146709
pythonvspyt551:31249597
nativeloc1:31118317
dwcopilot:31158714
dwoutputs:31242946
copilot_t_ci:31333650
g012b348:31231168
pythonrdcb7:31268811
pythonpcpt1:31399616
6518g693:31302842
4f60g487:31327383
envsactivate1:31349248
editstats-enabled:31346256
cloudbuttont:31366566
3efgi100_wstrepl:31403338
839jf696:31457053
cp_cls_t_966_ss:31526232
4je02754:31455664
8hhj4413:31478653
cp_cls_t_1081:31454832
conptydll_true:31485575
e9c30283:31453065
46204921:31447328
ei9d7968:31462942
de16b994:31458079
7e884298:31462391
ddid_c:31478205
hmra_i5g22:31518061
7df3h592:31491241
cp_cls_t_1082:31535311
logging_enabled_new:31490725
jb_cp_cls_t_632:31543129
b1g4i769:31503653
ha629193:31508444
a1ije391_t:31533808
jbcp_cls_pctr_t:31531130
cp_intellij_t_nes:31548657
gf14b233:31526830
hide-eh-duplicates:31543293
replace-eh-with-ah:31545853
ihg5j128:31534457
enable_editor_pane_layout:31551200
52258b4d:31547953
36h42362:31560305
c7c27ce7:31551212
1h923230:31564177
treatment-23-1:31555779
unuse_dynamic_mcp:31555281
0c1h4866:31562347
5b8j3302:31564600
autotiers:31584973
mangle-name-treatment:31568054
allow-signed-out:31574470
codex-agent-enabled:31566739
intellij_nes_preview_t:31580086
64a8d082:31573709
issue8950-5d26a188:31574957
39a5d156:31574988
ae8b2313:-9
2bfb8b39:31576696
soft:31581111
1cff76af:31580265
96d59efc:31580278
links-treatment:31581067
7g328426_fixed:31583679

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.