   init: ->
     @activatePackage()
     @registerCommands()
-    @registerEditors()
 
   deactivate: ->
     @stopServer()
     @unregisterEventsAndCommands()
-    @editorSubscription?.off()
-    @editorSubscription = null
     # autocomplete-plus
     @registration?.dispose()
     @registration = null

        @init()

  registerEvents: ->
    @disposables.push atom.workspace.onDidChangeActivePaneItem =>
      @documentationView.hide()
    @disposables.push atom.config.observe 'atom-ternjs.coffeeScript', =>

    , (err) ->
      console.error 'error', err

  unregisterEventsAndCommands: ->
    for disposable in @disposables
      disposable.dispose()
