If I introduce new files to a branch, I most often leave my tabs open with those new files. After I switch the branch the tabs with new files introduced in first branch still remain there and sometimes I accidentally click on
Save when I quit the editor which introduces new files to the branch that I just switched. It’s frustrating because I have to keep track of the files and their branches.
Is there a workaround for this because I think this can cause some serious frustrations on large projects. Also, would be amazing if my workspace gets restored whenever switching the branch.