         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()

    return @messages

  build: ->
    # get path of currently open file
    filepath = atom.workspace.getActiveTextEditor()?.getPath()


    # only continue if file is a .pwn file
    return unless filepath? and path.extname(filepath) == '.pwn'
    #also save it, so the unsaved buffer is included
    atom.workspace.getActiveTextEditor().save()

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

  serialize: -> undefined

  createOutputPanel: ->
    # create output panel (or return if already exists)
    unless @messages?
      @messages = new MessagePanelView
        title: 'Pawn output'
