This repository has been archived by the owner on Jun 9, 2022. It is now read-only.
Open multiple paths in the same window as separate root folders #95
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I changed openProject to open the given paths in the current window, by overwriting the currently opened folders. Before this change, if one would open multiple root folders and then save the project, loading the project would cause all paths to be loaded in separate windows. With my change, no new window is opened and all saved paths are properly loaded as root folders.
Unfortunately, I couldn't figure out how to preserve the devMode functionality of openProject. I also couldn't figure out how to open a new window and then set the saved project folders on that new window. This would make it more in line with the behaviour that is currently exhibited.
My Coffeescript / Atom dev knowledge is very limited, but maybe you could provide some pointers on how to achieve the two points I currently miss: devMode and opening a new window instead of replacing the current.