State object not preserved across session if there is no project folder


#1

Steps to reproduce:

  1. Create a package, implement activate(state) and serialize() methods

    activate(state) {
    console.log(state)
    }

    serialize() {
    return {
    name: ‘test’
    };
    }

  2. Launch atom

  3. Remove the project folder

  4. Close atom

  5. Re launch Atom

Observation: state is not passed to activate(state) function

Note: state is passed to activate function if there exist a project folder


#2

This is a known issue. You may want to subscribe to this issue for future updates:

https://github.com/atom/atom/issues/13318


#3

Thank you.