mirror of
https://github.com/atom/atom.git
synced 2026-02-10 22:55:09 -05:00
Restore saved state when adding folder to empty project via open command
This commit is contained in:
committed by
Michelle Tilley
parent
d891f2376c
commit
2e2438ca27
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user