← All needs

Debug Console hangs when scroling far away from a text selection in large output

Type: Bug **Actual:** Without a selection, scrolling the same output is smooth. With a selection of at least the first line, scrolling with the mouse wheel away from the selection gets slower with every step and might even crash the whole VS Code. **Expected:** Scrolling is as fast as without a selection. **Steps to Reproduce:** 1. Create large output in the debug console. 1. Create a file `main.js` with the following content: ```js for (let i = 0; i Performance is as expected. 3. Select some text in the first line of the Debug Console. 4. Drag the scrollbar thumb with the mouse to the bottom and back up. => Performance is degraded and depending on the system VS Code might even crash. https://github.com/user-attachments/assets/e8e11db9-90eb-4f06-b906-49715ab6ee60 [Trace-20261029T210124.json.gz](https://github.com/user-attachments/files/34154255/Trace-20261029T210124.json.gz) VS Code version: Code 1.143.1 (e646868227c3e3a9e3f24277c8c7220be42c0be7, 2026-10-22T17:23:22Z) OS version: Windows_NT x64 10.0.26200 Modes: System Info |Item|Value| |---|---| |CPUs|13th Gen Intel(R) Core(TM) i7-13850HX (28 x 2304)| |GPU Status|2d_canvas: enabled GPU0: VENDOR= 0x10de, DEVICE=0x28b8 [NVIDIA RTX 2000 Ada Generation Laptop GPU], DRIVER_VENDOR=NVIDIA, DRIVER_VERSION=32.0.15.9595 *ACTIVE* GPU1: VENDOR= 0x8086, DEVICE=0xa788 [Intel(R) UHD Graphics], DRIVER_VERSION=32.0.101.7085 GPU2: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.9711 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 webgpu: enabled webnn: disabled_off| |Load (avg)|undefined| |Memory (System)|63.61GB (40.08GB free)| |Process Argv|--disable-extensions .| |Screen Reader|no| |VM|0%| Extensions disabled