         type: 'string'
 
   activate: (state) ->
-    # Activate package
+    # activate package
     @subscriptions = new CompositeDisposable
     @subscriptions.add atom.commands.add 'atom-workspace', 'pawn-build:build': => @build()
 
   deactivate: ->
-    # Deactivate package
+    # deactivate package
     @messages?.detatch()
     @subscriptions.dispose()
     @pawnBuildView.destroy()

      output = @createOutputPanel()

      if data
        #Jump to the first error line
        editor = atom.workspace.getActiveTextEditor()
        invalidLine = editor.getLineCount()
        row = data.match(/\(([1-9][0-9]*)\)/)[1]
        if row? and not row
          editor.setCursorBufferPosition([row-1,0])

        # show output of pawncc
        lines = data.split('\n')

    return @messages

  build: ->
    # get current editor
    editor = atom.workspace.getActiveTextEditor()

    # get path of currently open file
    filepath = editor?.getPath()

    # only continue if file is a .pwn file
    return unless filepath? and path.extname(filepath) == '.pwn'

    # also save the current file, so the current buffer is included
    editor.save()

    # prepare command and arguments from package settigns
    cmd = atom.config.get('pawn-build.pawnExecutablePath')
