Skip to content

Selecting an already opened file in the Pull Request pane resets the scroll position #8206

@RikkiGibson

Description

@RikkiGibson

Type: Bug

Repro steps:

  1. Checkout a pull request branch
  2. Select a file in the files list in the Active Pull Request pane
  3. Scroll down a ways into the file. Double click on the tab bar to keep the file open
  4. Select a different file in the files list.
  5. Select the original file again in the files list.

Expected behavior: The (Pull Request) tab which I had open already for this file is shown at the scroll position I previously left it at.
Actual behavior: The scroll position is reset every time I navigate to it using the Pull Request files list, requiring me to dig back through to find where I was.

Extension version: 0.118.2
VS Code version: Code 1.106.3 (bf9252a2fb45be6893dd8870c0bf37e2e1766d61, 2025-11-25T22:28:18.024Z)
OS version: Windows_NT x64 10.0.26100
Modes:

System Info
Item Value
CPUs AMD Ryzen 9 3900X 12-Core Processor (24 x 3793)
GPU Status 2d_canvas: enabled
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
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 63.94GB (28.71GB free)
Process Argv . --log ms-dotnettools.csharp=debug --crash-reporter-id 59b388b8-1284-4d45-bdde-2e7f866e4f97
Screen Reader no
VM 50%
A/B Experiments
vsliv368:30146709
vswsl492cf:30256860
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
bajee813:31263137
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31334701
aj953862:31281341
b6b4d950:31327385
nes-set-on:31340697
6abeh943:31336334
cloudbuttont:31379625
todos-1:31405332
v66_all_req:31402695
3efgi100_wstrepl:31403338
trigger-command-fix:31379601
auto_model_enabled:31396818
use-responses-api:31390855
anonusage:31403420
je187915:31401257
3i15c187:31419927
ec5jj548:31422691
rai-control:31422799
copilot-nes-oct-t:31418199
metis_rerank_treatment1:31422731
cmp-ext-treat:31426748
cp_cls_c_966_ss:31426491
defaultvisibility:31426295
expandedtokens:31427242
c0683394:31419495
8ddb8369:31423616
478ah919:31426797
2bd77578_control:31426889
fa76a614:31426880
5j92g670_sonnet:31426790

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions