Restore saved state when adding folder to empty project via open command

This commit is contained in:
Katrina Uychaco
2017-03-08 14:41:41 -08:00
committed by Michelle Tilley
parent d891f2376c
commit 2e2438ca27

View File

@@ -1008,6 +1008,10 @@ class AtomEnvironment extends Model
unless fs.isDirectorySync(pathToOpen)
@workspace?.open(pathToOpen, {initialLine, initialColumn})
if needsProjectPaths
@loadState(@getStateKey(@project.getPaths())).then (state) =>
@restoreStateIntoEnvironment(state) if state
return
# Preserve this deprecation until 2.0. Sorry. Should have removed Q sooner.