mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-13 08:44:12 +03:00
Register deserializer for Project class
This commit is contained in:
parent
3532631002
commit
6047590544
@ -11,6 +11,7 @@ Git = require 'git'
|
||||
|
||||
module.exports =
|
||||
class Project
|
||||
registerDeserializer(this)
|
||||
|
||||
@deserialize: (state) ->
|
||||
new Project(state.path, state.grammarOverridesByPath)
|
||||
@ -29,6 +30,7 @@ class Project
|
||||
@buffers = []
|
||||
|
||||
serialize: ->
|
||||
deserializer: 'Project'
|
||||
path: @getPath()
|
||||
grammarOverridesByPath: @grammarOverridesByPath
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user