 
 module.exports =
   jekyllNewPostView: null
+  disposables: []
 
   config:
     postsDir:

    @jekyllNewPostView = new JekyllNewPostView()
    @getConfigFromSite()

    if typeof @toolbarView is 'undefined'
      @toolbarView = new JekyllToolbarView(JekyllEmitter)

    @toolbarPanel = atom.workspace.addBottomPanel(item: @toolbarView, visible: false, className: 'tool-panel panel-bottom')
    @toolbarView.setPanel @toolbarPanel

  deactivate: ->
    Server.stop()

  serialize: ->
    Server.stop()

  showError: (message) ->

    line = buffer.lines[activeEditor.getCursorBufferPosition().row]

    try
      @ifConfigLoaded (conf) ->
        data = module.exports.scan(line, /site\.data\.(.*?) /g)[0][0].split(" ")[0]
        atom.workspace.open(path.join(conf.data_dir, data) + ".yml")
    catch error
      @showError(error.message)

  manage: ->
    atom.workspace.open('atom://jekyll')
