New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test: SCM - maintain working sets when switching branches #210915
Comments
Everything works as expected. I think that the multi-repo state is quite interesting, I found it a little confusing to predict what it will do when I had ~6 repos open, but I expect that people will have less than that open and that they'll likely be only using this setting if they're actually really context-switching when switching branches. In that sense, the flow makes sense to me. |
@lszomoru if using VS Code Profiles, it seems this setting does not work when set in the application settings. Is this intentional? |
@thernstig, this is expected behaviour. You will have to "promote" the setting so that its value if applied to app profiles - https://code.visualstudio.com/docs/editor/profiles#_applying-a-setting-to-all-profiles. |
@lszomoru not the first time I forget about that. Probably worth to write an issue on that text if I get a chance, considering it can be improved mentioning this. |
Refs: #35307
Complexity: 5
Create Issue
This milestone we have implemented the first iteration of associating a working set (editors, editor layout) with a source control branch. When the feature is enabled, switching between source control branches will save/restore the working set.
🎯 What editors are included in the working set? As we do not want to interrupt switching branches with various modal dialogs, at the moment only editors the case be safely closed are included in the working set. The following editors are not included in the working set: untitled files, dirty files, custom editors that cannot be safely closed.
🎯 Working sets are being saved/restored after the branch switching completes. There are various scenarios in which git is unable to switch branches and working sets does not try to improve on that. In the case in which git is unable to switch the current branch the working set will not be saved/restored.
Prerequisites
files.autoSave
set tooff
scm.workingSets.enabled
set totrue
scm.workingSets.default
set tocurrent
Single-repository folder/workspace
main
)main
main
branch is restoredSingle-repository folder/workspace (empty working set)
main
)scm.workingSets.default
toempty
main
branchmain
branch is restoredMulti-repository folder/workspace
The text was updated successfully, but these errors were encountered: