 
   destruct: =>
     @removeAllListeners()
-    @inactivate()
+    @deactivate()
     @editor.off 'grammar-changed', @checkGrammar
 
     delete @editorView

  ###

  checkGrammar: =>
    # console.log 'checkGrammar:', @editor.getTitle()

    @inactivate()
    return unless @editor.getGrammar().name is 'CoffeeScript'
    @activate()


    delete @renameInfo

  done: ->
    return false unless @isActive()
    return false unless @renameInfo?

