Wrong files in the sidemenu when I change the branch

When I change to a new branch using git checkout in the terminal. The branch changes as usual but the files in the sidemenu still appear as it was before the git checkout. In order to refresh the files, I have to reselect the folder I am currently at and refresh the window.

VSCode Version: 1.96.2
Commit: 82ef0f61c01d079d1b7e5ab04d88499d5af500e0
Date: 2025-03-18T05:39:50.993Z
Electron: 32.2.6
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.22631