 Suggestion = require './suggestion'
 fuzzaldrin = require 'fuzzaldrin'
 {CompositeDisposable} = require 'event-kit'
+{TextEditor}  = require 'atom'
 
 module.exports =
 class FuzzyProvider

    # Subscribe to buffer events:
    @bufferSavedSubscription = @buffer.onDidSave(@bufferSaved)
    @bufferChangedSubscription = @buffer.onDidChange(@bufferChanged)

  # Public:  Gets called when the document has been changed. Returns an array
  # with suggestions. If `exclusive` is set to true and this method returns

    @bufferSavedSubscription?.dispose()
    @bufferChangedSubscription?.dispose()

    @editor = null
    @buffer = null

    return unless @paneItemIsValid(currentPaneItem)

    # Track the new editor, editorView, and buffer
    @editor = currentPaneItem
