       suggestions = autocomplete.getSuggestions(prefix, path, provider.settings)
       resolve(suggestions)
   unload: ->
+    @pathsChangedSubscription.dispose()
   load: ->
     @robotProjectPaths = {}
     # Configuration

      if !provider.robotProjectPaths[projectPath] and isRobot
        # New robot project detected
        provider.robotProjectPaths[projectPath] = {status: 'project-initial'}

        reloadAutocompleteData()

getAtomProjectPathsForEditor = (editor) ->
  res = []

  selector: '.text.robot'
  disableForSelector: '.comment, .variable, .punctuation, .string, .storage, .keyword'
  loading: undefined    # Set to 'true' during autocomplete data async loading
  pathsChangedSubscription: undefined
  # List of projects that contain robot files. Initially empty, will be completed
  # once user starts editing files.
  robotProjectPaths: undefined
