"explorer.sortOrder": "filesFirst" doesn't apply in "Source control" view with "View as Tree"

Open
#324,043 2 comments 1 reaction 1 assignee View on GitHub

@lszomoru is already working on this.

Since Jul 2, 2026.

Assessment

This issue has not been assessed yet.

Description

bug git

Type: Bug

I enabled "explorer.sortOrder": "filesFirst" in ~/.config/Code/User/settings.json. It works in "Explorer", but not for changes in "Source control" panel when sorted as a tree (which still shows directories before files). I would expect behaviour to be consistent for both, or at least to have an option to control sortOrder in the "Source control" panel.

VS Code version: Code 1.116.0 (560a9dba96f961efea7b1612916f89e5d5d4d679, 2026-04-15T00:28:13Z)
OS version: Linux x64 6.8.0-111-generic
Modes:

System Info
Item Value
CPUs 13th Gen Intel(R) Core(TM) i7-1365U (12 x 4892)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x8086 [Google Inc. (Intel)], DEVICE=0xa7a1 [ANGLE (Intel, Mesa Intel(R) Graphics (RPL-U), OpenGL ES 3.2 Mesa 23.2.1-1ubuntu3.1~22.04.4)], DRIVER_VENDOR=Mesa, DRIVER_VERSION=23.2.1 ACTIVE
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: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
webnn: disabled_off
Load (avg) 1, 1, 1
Memory (System) 15.06GB (4.80GB free)
Process Argv --crash-reporter-id 6f80bf97-b84e-4222-a95e-8a99afa32ff5
Screen Reader yes
VM 0%
DESKTOP_SESSION ubuntu
XDG_CURRENT_DESKTOP ubuntu:GNOME
XDG_SESSION_DESKTOP ubuntu
XDG_SESSION_TYPE wayland
Extensions (20)
Extension Author (truncated) Version
gitlens eam 18.2.0
latex-workshop Jam 10.16.1
rainbow-csv mec 3.24.1
git-graph mhu 1.30.0
debugpy ms- 2026.6.0
python ms- 2026.4.0
vscode-pylance ms- 2026.2.1
vscode-python-envs ms- 1.36.0
jupyter-keymap ms- 1.1.2
remote-ssh ms- 0.124.0
remote-ssh-edit ms- 0.87.0
cpptools ms- 1.32.2
hexeditor ms- 1.11.1
live-server ms- 0.4.19
remote-explorer ms- 0.5.0
fix-json oli 0.2.0
material-icon-theme PKi 5.36.1
rewrap stk 1.16.3
transpose v4r 0.0.6
markdown-all-in-one yzh 3.6.3
A/B Experiments
vsliv368cf:30146710
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
6abeh943:31336334
envsactivate1:31538736
cloudbuttont:31379625
3efgi100_wstrepl:31403338
56b7f661:31457055
ec5jj548:31422691
cp_cls_t_966_ss:31526232
4je02754:31466945
8hhj4413:31478653
cp_cls_c_1081:31454833
conptydll_true:31498968
e9c30283:31461165
test_treatment2:31471001
idci7584:31464702
e3e4d672:31494082
ei9d7968:31496641
chat:31457767
7e187181:31503455
ghj88844:31499326
ddid_t:31478206
cp_cls_t_1082:31535311
logging_enabled_new:31498466
j0d79568:31499440
jb_cp_cls_t_632:31543129
852d2892:31506239
748c7209:31512887
ha629193:31508444
cdk-lw-on:31524445
8hfba999:31537718
jbcp_cls_pctr_t:31531130
cp_intellij_c_nes:31533503
gf14b233:31526830
h561g132:31533256
ihg5j128:31534457
9gg7f176:31542112

Dominant language
TypeScript
Stars
193k
Forks
42.9k
PR merge metrics
PR metrics pending

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/vscode

All issues in microsoft/vscode

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.