 
   ###
   Reference finder process
-  1. Detect buffer changed.
-  2. Stop listening cursor move event.
-  3. Parse.
-  4. Show errors and exit process when compile error is thrown.
-  5. Show references.
-  6. Start listening cursor move event.
-  ###
-
-  onBufferChanged: =>
-    # clearTimeout @timeoutId
-    # @timeoutId = setTimeout @parse, 0
+  1. Stop listening cursor move event and reset views.
+  2. Parse.
+  3. Show errors and exit process when compile error is thrown.
+  4. Show references.
+  5. Start listening cursor move event.
+  ###
+
+  parse: ->
+    @editorView.off 'cursor:moved', @onCursorMoved
     @hideError()
     @referenceView.update()
-    @editorView.off 'cursor:moved', @onCursorMoved
-    @parse()
-    # unless @isParsing
-    #   @isParsing = true
-
-  parse: =>
+
     text = @editor.buffer.getText()
     if text isnt @cachedText
       @cachedText = text

    @editorView.off 'cursor:moved', @cancel
    delete @renameInfo
    true


  ###

    @editor.buffer.on 'changed', @onBufferChanged

    # Execute
    @parse()

  deactivate: ->
    # Stop listening
