Hey @Gulzar, this looks related to your previous report from last month, where Colin suggested the explorer.autoReveal setting.
Have you tried turning it on? If not:
- Open the Command Palette
Ctrl + Shift + P→Preferences: Open Settings (JSON) - Add:
"explorer.autoReveal": false
I know you mentioned you want the file panel to follow the selected file, but sadly there isn’t a middle option that follows only manual selection while ignoring other events like deletion. It’s either auto reveal for everything, or nothing.
The jump on delete is inherited VS Code behavior. When a file gets deleted, the explorer moves focus to the nearest remaining item in the tree, and that causes the scroll.
If you’ve already tried autoReveal: false and it still happens, let me know and I’ll dig deeper.