 NapalmView = require './napalm-view'
 {CompositeDisposable} = require 'atom'
 Acorn = require 'acorn'
+Escodegen = require 'escodegen'
 
 module.exports = Napalm =
   napalmView: null

  toggle: ->
    if editor = atom.workspace.getActiveTextEditor()
      selection = editor.getSelectedText()

    # Register command that toggles this view
    @subscriptions.add atom.commands.add 'atom-workspace', 'napalm:toggle': => @toggle()
    window.Acorn = Acorn
    window.Escodegen = Escodegen

  deactivate: ->
    @modalPanel.destroy()
