-{Range}  = require 'atom'
+{Range, TextEditor}  = require 'atom'
 {CompositeDisposable, Disposable, Emitter} = require 'event-kit'
 _ = require 'underscore-plus'
 FuzzyProvider = require './fuzzy-provider'


  paneItemIsValid: (paneItem) =>
    return false unless paneItem?
    # TODO: Disqualify invalid pane items
    # ...
    return true

  # Private: Handles editor events
  handleEvents: ->

      position = cursor?.getBufferPosition()
      cursor.setBufferPosition([position.row, position.column]) if position?

  showSuggestionList: (suggestions) ->
    @suggestionList.changeItems(suggestions)
    @suggestionList.show(@editor)

  hideSuggestionList: ->
    # TODO: Should we *always* focus the editor? Probably not...
