+fs = require 'fs-plus'
+CSON = require 'season'
 {CompositeDisposable} = require 'atom'
-fs = require 'fs-plus'
 settings = require './settings'
-CSON = null
 
 configTemplate = """
-# groups:
-#   atom: [
-#     "~/github/atom"
-#     "~/github/text-buffer"
-#     "~/github/atom-keymap"
-#   ]
-#   sample: [
-#     "~/dir/hello-project"
-#     "~/dir/world-project"
-#   ]
-"""
+  # groups:
+  #   atom: [
+  #     "~/github/atom"
+  #     "~/github/text-buffer"
+  #     "~/github/atom-keymap"
+  #   ]
+  #   sample: [
+  #     "~/dir/hello-project"
+  #     "~/dir/world-project"
+  #   ]
+  """
 
 module.exports =
   config: settings.config

    @subscriptions.add atom.commands.add 'atom-workspace',
      'project-folder:add': => @view.start('add')
      'project-folder:remove': => @view.start('remove')
      'project-folder:open-config': => @openUserConfig()

  deactivate: ->
    @subscriptions.dispose()

    if groups = @readConfig().groups
      @view.setGroups(groups)

  openConfig: ->
    filePath = @getUserConfigPath()

    atom.workspace.open(filePath, searchAllPanes: true).then (editor) =>
