Serialize project

This commit is contained in:
Kevin Sawicki
2014-03-04 16:19:10 -08:00
parent 75b6e94be1
commit 372ca374cc

View File

@@ -229,7 +229,7 @@ class Atom extends Model
deserializeProject: ->
Project = require './project'
@project ?= @deserializers.deserialize(@project) ? new Project(path: @getLoadSettings().initialPath)
@project ?= @deserializers.deserialize(@state.project) ? new Project(path: @getLoadSettings().initialPath)
deserializeWorkspaceView: ->
Workspace = require './workspace'
@@ -280,6 +280,7 @@ class Atom extends Model
return if not @project and not @workspaceView
@state.syntax = @syntax.serialize()
@state.project = @project.serialize()
@state.workspace = @workspace.serialize()
@packages.deactivatePackages()
@state.packageStates = @packages.packageStates