+{Emitter} = require 'atom'
 _ = require 'underscore-plus'
 Settings = require './settings'
 DB = require './db'

    @propsToSave = _.without @propsToSave, key
    @props[key] = defaults[key] if defaults[key]?
    @save()

  isCurrent: =>
    activePath = atom.project.getPaths()[0]

  open: ->
    atom.open options =
      pathsToOpen: @props.paths
      devMode: @props.devMode

  onUpdate: (callback) ->
    @emitter.on 'updated', () ->
      callback()