I am refactoring a medium-sized code base in Visual Studio Code. I create a new branch, create some new folders, and move some files there. Whenever I commit my work and switch back to the main branch, the files in those folders are gone (as expected), but the empty folders remain!
It seems VSCode does not understand that these directories are part of the branch I am working on. Is there any way to solve this issue?