Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Improve behavior when restoring session that references a missing project folder #18742
Requirements for Contributing a Bug Fix
Identify the Bug
Description of the Change
When Atom is launched from the dock or start menu, or from the command-line with no path arguments, it (by default) attempts to restore the previous open windows and session state by reading a file at
I've done this by:
I thought about introducing some new syntax for pathsToOpen to indicate that a specific path is required to be a directory, like
If a user has different stored session state for the set of project folders that are still present, it'll be clobbered by this session.
Because of the way session state is tracked, we can only save one in this case. I chose to go with the session state that the user explicitly requested (assuming they understand that project folder set = session state key, of course).
Atom should open with